aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pppoe.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-05-05 03:56:33 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-05 03:56:33 -0400
commit8753d29fd5daf890004a38c80835e1eb3acda394 (patch)
tree7982db768fe9236ff2b076ed473a0a74782cce2c /drivers/net/pppoe.c
parent0a12761bcd5646691c5d16dd93df84d1b8849285 (diff)
pppoe: remove unnecessary checks in pppoe_flush_dev
pernet memory is guaranteed to exist when notifiers are called. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r--drivers/net/pppoe.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index c059c8db42e..99f031a08a0 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];