PM / Clocks: Remove redundant NULL checks before kfree()
Subsystems (4)
PATCH RESEND 1/1 PM / Clocks: Remove redundant NULL checks before kfree()
From: Jonghwan Choi <[email protected]>
Signed-off-by Jonghwan Choi <[email protected]>
--- drivers/base/power/clock_ops.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/base/power/clock_ops.c +1 -3
@@ -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); }
Signature · 1 line
1.7.1
Rafael J. Wysocki
AppliedPATCH RESEND 1/1 PM / Clocks: Remove redundant NULL checks before kfree()
Quoted 3 lines · jhbird.choi at samsung.com
From: Jonghwan Choi <[email protected]>
Signed-off-by Jonghwan Choi <[email protected]>
Applied to linux-pm/linux-next, but I didn't have to resend it.
Thanks,
Rafael
Quoted 20 lines
--- drivers/base/power/clock_ops.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)drivers/base/power/clock_ops.c +1
-3@@ -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); }