aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/pn_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/phonet/pn_dev.c')
-rw-r--r--net/phonet/pn_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c
index 6b30cc1b94b8..5ae4c01e8388 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)
97{ 97{
98 struct phonet_device_list *pndevs = phonet_device_list(net); 98 struct phonet_device_list *pndevs = phonet_device_list(net);
99 struct phonet_device *pnd; 99 struct phonet_device *pnd;
100 struct net_device *dev; 100 struct net_device *dev = NULL;
101 101
102 spin_lock_bh(&pndevs->lock); 102 spin_lock_bh(&pndevs->lock);
103 list_for_each_entry(pnd, &pndevs->list, list) { 103 list_for_each_entry(pnd, &pndevs->list, list) {