summaryrefslogtreecommitdiffstats
path: root/net/appletalk/ddp.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-09-12 11:26:59 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:49:02 -0700
commit890d52d3f1e28888c4122e120426588f5ad63d37 (patch)
treec082ca5fd5e00e033cb22067c927e19a00160beb /net/appletalk/ddp.c
parentab5f5e8b144e4c804ef3aa1ce08a9ca9f01187ce (diff)
downloadop-kernel-dev-890d52d3f1e28888c4122e120426588f5ad63d37.zip
op-kernel-dev-890d52d3f1e28888c4122e120426588f5ad63d37.tar.gz
[ATALK]: In notifier handlers convert the void pointer to a netdevice
This slightly improves code safety and clarity. Later network namespace patches touch this code so this is a preliminary cleanup. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r--net/appletalk/ddp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index fbdfb12..594b597 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -647,9 +647,11 @@ static inline void atalk_dev_down(struct net_device *dev)
static int ddp_device_event(struct notifier_block *this, unsigned long event,
void *ptr)
{
+ struct net_device *dev = ptr;
+
if (event == NETDEV_DOWN)
/* Discard any use of this */
- atalk_dev_down(ptr);
+ atalk_dev_down(dev);
return NOTIFY_DONE;
}
OpenPOWER on IntegriCloud