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>
This commit is contained in:
Wei Yongjun 2009-03-31 15:06:26 -07:00 committed by David S. Miller
parent bb1fee86fd
commit c9caceca25
1 changed files with 1 additions and 2 deletions

View File

@ -261,8 +261,7 @@ static int ethtool_get_rxnfc(struct net_device *dev, void __user *useraddr)
ret = 0; ret = 0;
err_out: err_out:
if (rule_buf) kfree(rule_buf);
kfree(rule_buf);
return ret; return ret;
} }