From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Cc: Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: acpi: Used PTR_RET function
Date: Tue, 26 Mar 2013 14:28:34 +0100 [thread overview]
Message-ID: <1860843.rMdcvsu2GA@vostro.rjw.lan> (raw)
In-Reply-To: <1363077171-30141-1-git-send-email-gheorghiuandru@gmail.com>
On Tuesday, March 12, 2013 10:32:51 AM Alexandru Gheorghiu wrote:
> Used PTR_RET function instead of explicit checking with IS_ERR.
>
> Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Applied to linux-pm.git/linux-next.
Thanks,
Rafael
> ---
> drivers/acpi/acpi_pad.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c
> index 31de104..27bb6a9 100644
> --- a/drivers/acpi/acpi_pad.c
> +++ b/drivers/acpi/acpi_pad.c
> @@ -236,7 +236,7 @@ static int create_power_saving_task(void)
> ps_tsks[ps_tsk_num] = kthread_run(power_saving_thread,
> (void *)(unsigned long)ps_tsk_num,
> "acpi_pad/%d", ps_tsk_num);
> - rc = IS_ERR(ps_tsks[ps_tsk_num]) ? PTR_ERR(ps_tsks[ps_tsk_num]) : 0;
> + rc = PTR_RET(ps_tsks[ps_tsk_num]);
> if (!rc)
> ps_tsk_num++;
> else
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
prev parent reply other threads:[~2013-03-26 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 8:32 Alexandru Gheorghiu
2013-03-26 13:28 ` 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=1860843.rMdcvsu2GA@vostro.rjw.lan \
--to=rjw@sisk.pl \
--cc=gheorghiuandru@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®