* [RESEND PATCH] PM / Clocks: Remove redundant NULL checks before kfree()
@ 2011-10-19 23:55 jhbird.choi at samsung.com
2011-10-21 22:33 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: jhbird.choi at samsung.com @ 2011-10-19 23:55 UTC (permalink / raw)
To: linux-arm-kernel
From: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Jonghwan Choi <jhbird.choi@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [RESEND PATCH] PM / Clocks: Remove redundant NULL checks before kfree()
2011-10-19 23:55 [RESEND PATCH] PM / Clocks: Remove redundant NULL checks before kfree() jhbird.choi at samsung.com
@ 2011-10-21 22:33 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2011-10-21 22:33 UTC (permalink / raw)
To: linux-arm-kernel
On Thursday, October 20, 2011, jhbird.choi at samsung.com wrote:
> From: Jonghwan Choi <jhbird.choi@samsung.com>
>
> Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Applied to linux-pm/linux-next, but I didn't have to resend it.
Thanks,
Rafael
> ---
> 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);
> }
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-21 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-19 23:55 [RESEND PATCH] PM / Clocks: Remove redundant NULL checks before kfree() jhbird.choi at samsung.com
2011-10-21 22:33 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).