projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/net/core/ethtool.c
b/net/core/ethtool.c
index 244ca56dffac3eb57536142f5aa36e2f4a6f12a5..d9d5160610d5e87741965bcddc126f46a4f5c0cd 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;
}