OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e23576
)
hamradio: 6pack: remove unnecessary check
author
Sudip Mukherjee
<sudipm.mukherjee@gmail.com>
Mon, 3 Nov 2014 12:12:29 +0000
(17:42 +0530)
committer
David S. Miller
<davem@davemloft.net>
Mon, 3 Nov 2014 20:34:31 +0000
(15:34 -0500)
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>
drivers/net/hamradio/6pack.c
patch
|
blob
|
history
diff --git
a/drivers/net/hamradio/6pack.c
b/drivers/net/hamradio/6pack.c
index
c3c4051
..
daca0de
100644
(file)
--- 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;