summaryrefslogtreecommitdiff
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-11-03 15:12:29 +0300
committerDavid S. Miller <davem@davemloft.net>2014-11-03 23:34:31 +0300
commitec5a0ec1a4b0a065148905340cd5f0e2a4425b6f (patch)
tree56355e917423cf6229db7d2837721de51e354558 /drivers/net/hamradio
parent4e2357611323d562fe255d9d71309b3ece30b8cd (diff)
downloadlinux-ec5a0ec1a4b0a065148905340cd5f0e2a4425b6f.tar.xz
hamradio: 6pack: remove unnecessary check
this is check for dev is unnecessary, as we are already checking dev after allocating it via alloc_netdev, and jumping to label: out if it is NULL. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r--drivers/net/hamradio/6pack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c
index c3c4051a089d..daca0dee88f3 100644
--- a/drivers/net/hamradio/6pack.c
+++ b/drivers/net/hamradio/6pack.c
@@ -675,8 +675,7 @@ out_free:
kfree(xbuff);
kfree(rbuff);
- if (dev)
- free_netdev(dev);
+ free_netdev(dev);
out:
return err;