mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 19:31:09 +07:00
bridge: cleanup: remove unneed check
We dereference "port" on the lines immediately before and immediately after the test so port should hopefully never be null here. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b96b894c51
commit
02a780c014
@ -627,8 +627,8 @@ static void br_multicast_port_query_expired(unsigned long data)
|
|||||||
struct net_bridge *br = port->br;
|
struct net_bridge *br = port->br;
|
||||||
|
|
||||||
spin_lock(&br->multicast_lock);
|
spin_lock(&br->multicast_lock);
|
||||||
if (port && (port->state == BR_STATE_DISABLED ||
|
if (port->state == BR_STATE_DISABLED ||
|
||||||
port->state == BR_STATE_BLOCKING))
|
port->state == BR_STATE_BLOCKING)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (port->multicast_startup_queries_sent <
|
if (port->multicast_startup_queries_sent <
|
||||||
|
Loading…
Reference in New Issue
Block a user