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;
|
ret = 0;
|
||||||
|
|
||||||
err_out:
|
err_out:
|
||||||
if (rule_buf)
|
kfree(rule_buf);
|
||||||
kfree(rule_buf);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue