projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a12761
)
pppoe: remove unnecessary checks in pppoe_flush_dev
author
Jiri Pirko
<
[email protected]
>
Wed, 5 May 2010 07:56:33 +0000
(
00:56
-0700)
committer
David S. Miller
<
[email protected]
>
Wed, 5 May 2010 07:56:33 +0000
(
00:56
-0700)
pernet memory is guaranteed to exist when notifiers are called.
Signed-off-by: Jiri Pirko <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/pppoe.c
patch
|
blob
|
history
diff --git
a/drivers/net/pppoe.c
b/drivers/net/pppoe.c
index c059c8db42e30478cc90135a4566f59c923a2475..99f031a08a015942609eebd6a7dc897d77dcc00a 100644
(file)
--- 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];