mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-24 23:23:59 +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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue