[RESEND PATCH] PM / Clocks: Remove redundant NULL checks before kfree()

jhbird.choi at samsung.com jhbird.choi at samsung.com
Wed Oct 19 19:55:32 EDT 2011


From: Jonghwan Choi <jhbird.choi at samsung.com>

Signed-off-by: Jonghwan Choi <jhbird.choi at samsung.com>
---
 drivers/base/power/clock_ops.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/base/power/clock_ops.c b/drivers/base/power/clock_ops.c
index b97294e..3ecc303 100644
--- a/drivers/base/power/clock_ops.c
+++ b/drivers/base/power/clock_ops.c
@@ -114,9 +114,7 @@ static void __pm_clk_remove(struct pm_clock_entry *ce)
 			clk_put(ce->clk);
 	}
 
-	if (ce->con_id)
-		kfree(ce->con_id);
-
+	kfree(ce->con_id);
 	kfree(ce);
 }
 
-- 
1.7.1




More information about the linux-arm-kernel mailing list