]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
core: remove pointless conditional before kfree()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 31 Mar 2009 22:06:26 +0000 (15:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2009 22:06:26 +0000 (15:06 -0700)
Remove pointless conditional before kfree().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c

index 244ca56dffac3eb57536142f5aa36e2f4a6f12a5..d9d5160610d5e87741965bcddc126f46a4f5c0cd 100644 (file)
@@ -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;
 }