diff options
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r-- | drivers/net/pppoe.c | 6 |
1 files changed, 0 insertions, 6 deletions
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) | |||
290 | struct pppoe_net *pn; | 290 | struct pppoe_net *pn; |
291 | int i; | 291 | int i; |
292 | 292 | ||
293 | BUG_ON(dev == NULL); | ||
294 | |||
295 | pn = pppoe_pernet(dev_net(dev)); | ||
296 | if (!pn) /* already freed */ | ||
297 | return; | ||
298 | |||
299 | write_lock_bh(&pn->hash_lock); | 293 | write_lock_bh(&pn->hash_lock); |
300 | for (i = 0; i < PPPOE_HASH_SIZE; i++) { | 294 | for (i = 0; i < PPPOE_HASH_SIZE; i++) { |
301 | struct pppox_sock *po = pn->hash_table[i]; | 295 | struct pppox_sock *po = pn->hash_table[i]; |