From: Wei Yongjun Date: Tue, 31 Mar 2009 22:06:26 +0000 (-0700) Subject: core: remove pointless conditional before kfree() X-Git-Tag: v2.6.30-rc1~137^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9caceca25854eff4328c89045793a91bf8f9ee3;p=profile%2Fivi%2Fkernel-x86-ivi.git core: remove pointless conditional before kfree() Remove pointless conditional before kfree(). Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 244ca56..d9d5160 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) ret = 0; err_out: - if (rule_buf) - kfree(rule_buf); + kfree(rule_buf); return ret; }