projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb1fee8
)
core: remove pointless conditional before kfree()
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Tue, 31 Mar 2009 22:06:26 +0000
(15:06 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 31 Mar 2009 22:06:26 +0000
(15:06 -0700)
Remove pointless conditional before kfree().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c
patch
|
blob
|
history
diff --git
a/net/core/ethtool.c
b/net/core/ethtool.c
index
244ca56
..
d9d5160
100644
(file)
--- a/
net/core/ethtool.c
+++ b/
net/core/ethtool.c
@@
-261,8
+261,7
@@
static int ethtool_get_rxnfc(struct net_device *dev, void __user *useraddr)
ret = 0;
err_out:
- if (rule_buf)
- kfree(rule_buf);
+ kfree(rule_buf);
return ret;
}