* [PATCH] drivers: acpi: Used PTR_RET function
@ 2013-03-12 8:32 Alexandru Gheorghiu
2013-03-26 13:28 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Alexandru Gheorghiu @ 2013-03-12 8:32 UTC (permalink / raw)
To: Len Brown
Cc: Rafael J. Wysocki, linux-acpi, linux-kernel, Alexandru Gheorghiu
Used PTR_RET function instead of explicit checking with IS_ERR.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
---
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
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers: acpi: Used PTR_RET function
2013-03-12 8:32 [PATCH] drivers: acpi: Used PTR_RET function Alexandru Gheorghiu
@ 2013-03-26 13:28 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2013-03-26 13:28 UTC (permalink / raw)
To: Alexandru Gheorghiu; +Cc: Len Brown, linux-acpi, linux-kernel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-26 13:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-12 8:32 [PATCH] drivers: acpi: Used PTR_RET function Alexandru Gheorghiu
2013-03-26 13:28 ` 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
all inboxes | Powered by JetHome®