diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-03-31 18:06:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-31 18:06:26 -0400 |
commit | c9caceca25854eff4328c89045793a91bf8f9ee3 (patch) | |
tree | fc43f8c43a4c597cdea652fe349270d2ca47e731 /net/core/ethtool.c | |
parent | bb1fee86fdc7df1fd145fd3bfb16635274b7c73d (diff) |
core: remove pointless conditional before kfree()
Remove pointless conditional before kfree().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/ethtool.c')
-rw-r--r-- | net/core/ethtool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 244ca56dffac..d9d5160610d5 100644 --- 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) | |||
261 | ret = 0; | 261 | ret = 0; |
262 | 262 | ||
263 | err_out: | 263 | err_out: |
264 | if (rule_buf) | 264 | kfree(rule_buf); |
265 | kfree(rule_buf); | ||
266 | 265 | ||
267 | return ret; | 266 | return ret; |
268 | } | 267 | } |