Skip to content

Commit

Permalink
core: remove pointless conditional before kfree()
Browse files Browse the repository at this point in the history
Remove pointless conditional before kfree().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Mar 31, 2009
1 parent bb1fee8 commit c9cacec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c9cacec

Please sign in to comment.