Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
David S. Miller
02a780c0 b96b894c

+2 -2
+2 -2
net/bridge/br_multicast.c
··· 627 627 struct net_bridge *br = port->br; 628 628 629 629 spin_lock(&br->multicast_lock); 630 - if (port && (port->state == BR_STATE_DISABLED || 631 - port->state == BR_STATE_BLOCKING)) 630 + if (port->state == BR_STATE_DISABLED || 631 + port->state == BR_STATE_BLOCKING) 632 632 goto out; 633 633 634 634 if (port->multicast_startup_queries_sent <