[RESEND PATCH] PM / Clocks: Remove redundant NULL checks before kfree()
Rafael J. Wysocki
rjw at sisk.pl
Fri Oct 21 18:33:28 EDT 2011
On Thursday, October 20, 2011, jhbird.choi at samsung.com wrote:
> From: Jonghwan Choi <jhbird.choi at samsung.com>
>
> Signed-off-by: Jonghwan Choi <jhbird.choi at 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);
> }
>
>
More information about the linux-arm-kernel
mailing list