git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: pass info struct via netdevice notifier
[pandora-kernel.git]
/
net
/
decnet
/
af_decnet.c
diff --git
a/net/decnet/af_decnet.c
b/net/decnet/af_decnet.c
index
c21f200
..
dd4d506
100644
(file)
--- a/
net/decnet/af_decnet.c
+++ b/
net/decnet/af_decnet.c
@@
-2078,9
+2078,9
@@
out_err:
}
static int dn_device_event(struct notifier_block *this, unsigned long event,
}
static int dn_device_event(struct notifier_block *this, unsigned long event,
- void *ptr)
+
void *ptr)
{
{
- struct net_device *dev =
(struct net_device *)ptr
;
+ struct net_device *dev =
netdev_notifier_info_to_dev(ptr)
;
if (!net_eq(dev_net(dev), &init_net))
return NOTIFY_DONE;
if (!net_eq(dev_net(dev), &init_net))
return NOTIFY_DONE;