net: dsa: sja1105: Unset port from forwarding mask unconditionally on fdb_del

This is a cosmetic patch that simplifies the code by removing a
redundant check. A logical AND-with-zero performed on a zero is still
zero.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Vladimir Oltean 2019-06-03 00:15:54 +03:00 committed by David S. Miller
parent 1da7382134
commit 7752e937f1
1 changed files with 2 additions and 2 deletions

View File

@ -903,8 +903,8 @@ int sja1105et_fdb_del(struct dsa_switch *ds, int port,
* need to completely evict the FDB entry. * need to completely evict the FDB entry.
* Otherwise we just write it back. * Otherwise we just write it back.
*/ */
if (l2_lookup.destports & BIT(port)) l2_lookup.destports &= ~BIT(port);
l2_lookup.destports &= ~BIT(port);
if (l2_lookup.destports) if (l2_lookup.destports)
keep = true; keep = true;
else else