Subject: [PATCH] core: remove pointless conditional before kfree()

From: Wei Yongjun <[email-masked]>
Date: Tue, 31 Mar 2009 16:09:19 +0800

Remove pointless conditional before kfree().

Signed-off-by: Wei Yongjun <[email-masked]>
---
 net/core/ethtool.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index 244ca56..d9d5160 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -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;
 }
-- 
1.5.3.8