Commit c9caceca authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

core: remove pointless conditional before kfree()

Remove pointless conditional before kfree().
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb1fee86
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment