From: Jiri Pirko Date: Wed, 5 May 2010 07:56:33 +0000 (-0700) Subject: pppoe: remove unnecessary checks in pppoe_flush_dev X-Git-Tag: MMI-PSA29.97-13-9~23873^2~283 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8753d29fd5daf890004a38c80835e1eb3acda394;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git pppoe: remove unnecessary checks in pppoe_flush_dev pernet memory is guaranteed to exist when notifiers are called. Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index c059c8db42e3..99f031a08a01 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c @@ -290,12 +290,6 @@ static void pppoe_flush_dev(struct net_device *dev) struct pppoe_net *pn; int i; - BUG_ON(dev == NULL); - - pn = pppoe_pernet(dev_net(dev)); - if (!pn) /* already freed */ - return; - write_lock_bh(&pn->hash_lock); for (i = 0; i < PPPOE_HASH_SIZE; i++) { struct pppox_sock *po = pn->hash_table[i];