Skip to content

Commit

Permalink
phonet: phonet_device_get() fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 5, 2009
1 parent 476181c commit cf39c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/phonet/pn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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) {
Expand Down

0 comments on commit cf39c4c

Please sign in to comment.