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

Commit 9fa4e103 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "leds: qti-flash: Handle error return path properly"

parents a5538963 f5ab7987
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -362,7 +362,7 @@ static int qti_flash_led_strobe(struct qti_flash_led *led,
		if (led->trigger_lmh) {
			rc = qti_flash_lmh_mitigation_config(led, true);
			if (rc < 0)
				return rc;
				goto error;

			/* Wait for LMH mitigation to take effect */
			udelay(500);
@@ -386,7 +386,7 @@ static int qti_flash_led_strobe(struct qti_flash_led *led,
		if (led->trigger_lmh) {
			rc = qti_flash_lmh_mitigation_config(led, false);
			if (rc < 0)
				return rc;
				goto error;

			led->trigger_lmh = false;
		}