summaryrefslogtreecommitdiffstats
path: root/net/netrom/nr_loopback.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netrom/nr_loopback.c')
-rw-r--r--net/netrom/nr_loopback.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netrom/nr_loopback.c b/net/netrom/nr_loopback.c
index a880dd33e901..511819fbfa67 100644
--- a/net/netrom/nr_loopback.c
+++ b/net/netrom/nr_loopback.c
@@ -59,8 +59,7 @@ static void nr_loopback_timer(struct timer_list *unused)
if (dev == NULL || nr_rx_frame(skb, dev) == 0)
kfree_skb(skb);
- if (dev != NULL)
- dev_put(dev);
+ dev_put(dev);
if (!skb_queue_empty(&loopback_queue) && !nr_loopback_running())
mod_timer(&loopback_timer, jiffies + 10);