diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-12 08:32:51 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-25 00:13:15 +0100 |
commit | a1458187ae66825871c93b6b56ca2cd1d88e9cb9 (patch) | |
tree | 897c526699e6155139ef210c81cc7a468e921dd5 /drivers/acpi/acpi_pad.c | |
parent | 2f9b06fc95486e396dd533670dcb25de5e2612ea (diff) | |
download | linux-a1458187ae66825871c93b6b56ca2cd1d88e9cb9.tar.gz linux-a1458187ae66825871c93b6b56ca2cd1d88e9cb9.tar.bz2 linux-a1458187ae66825871c93b6b56ca2cd1d88e9cb9.zip |
ACPI / acpi_pad: Used PTR_RET
Use PTR_RET instead of explicit checking with IS_ERR.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_pad.c')
-rw-r--r-- | drivers/acpi/acpi_pad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 31de1043eea0..27bb6a91de5f 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 |