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

Commit aac3311c authored by Pavel Machek's avatar Pavel Machek Committed by Andy Shevchenko
Browse files

platform/x86: thinkpad_acpi: cleanup for Thinkpad ACPI led



Make error returns more consistent... no behaviour change intended.

Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent c77c3577
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -5876,7 +5876,7 @@ static int led_set_status(const unsigned int led,
			return -EPERM;
		if (!acpi_evalf(led_handle, NULL, NULL, "vdd",
				(1 << led), led_sled_arg1[ledstatus]))
			rc = -EIO;
			return -EIO;
		break;
	case TPACPI_LED_OLD:
		/* 600e/x, 770e, 770x, A21e, A2xm/p, T20-22, X20 */
@@ -5900,10 +5900,10 @@ static int led_set_status(const unsigned int led,
			return -EPERM;
		if (!acpi_evalf(led_handle, NULL, NULL, "vdd",
				led, led_led_arg1[ledstatus]))
			rc = -EIO;
			return -EIO;
		break;
	default:
		rc = -ENXIO;
		return -ENXIO;
	}

	if (!rc)