From: rjw@sisk.pl (Rafael J. Wysocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [RESEND PATCH] PM / Clocks: Remove redundant NULL checks before kfree()
Date: Sat, 22 Oct 2011 00:33:28 +0200 [thread overview]
Message-ID: <201110220033.29015.rjw@sisk.pl> (raw)
In-Reply-To: <1319068532-21287-1-git-send-email-jhbird.choi@samsung.com>
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);
> }
>
>
prev parent reply other threads:[~2011-10-21 22:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201110220033.29015.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).