Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1458187 authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Rafael J. Wysocki
Browse files

ACPI / acpi_pad: Used PTR_RET



Use PTR_RET instead of explicit checking with IS_ERR.

Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2f9b06fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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