diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-07-27 08:03:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-27 08:03:18 -0700 |
commit | 59e57f4417507b1e71f6e5af3eb7e68e6477ac94 (patch) | |
tree | fa98a7782a996413537a852e792fe592a0450cfd /net/phonet | |
parent | 72dccb01e8632aa5ffe58070003d0fa19d007116 (diff) | |
download | kernel_samsung_aries-59e57f4417507b1e71f6e5af3eb7e68e6477ac94.zip kernel_samsung_aries-59e57f4417507b1e71f6e5af3eb7e68e6477ac94.tar.gz kernel_samsung_aries-59e57f4417507b1e71f6e5af3eb7e68e6477ac94.tar.bz2 |
phonet: phonet_device_get() fix
net/phonet/pn_dev.c: In function `phonet_device_get':
net/phonet/pn_dev.c:99: warning: 'dev' might be used uninitialized in this function
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet')
-rw-r--r-- | net/phonet/pn_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index 6b30cc1..5ae4c01 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c @@ -97,7 +97,7 @@ struct net_device *phonet_device_get(struct net *net) { struct phonet_device_list *pndevs = phonet_device_list(net); struct phonet_device *pnd; - struct net_device *dev; + struct net_device *dev = NULL; spin_lock_bh(&pndevs->lock); list_for_each_entry(pnd, &pndevs->list, list) { |