mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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:
parent
bb1fee86fd
commit
c9caceca25
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user