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

Commit fb8d6d49 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

leds: qti-flash: Initialize rc in qti_flash_led_symmetry_config()



Initialize rc just for sanity so that it is not used uninitialized in
the return path.

Fixes: 568fc7ac ("leds: qti-flash: Handle all-enabled led mask separately")
Change-Id: I77caac87781b7a2ad2de0ecb13c5b3cd9ca3707b
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent e445c189
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -592,7 +592,7 @@ static int qti_flash_led_symmetry_config(struct flash_switch_data *snode)
{
	struct qti_flash_led *led = snode->led;
	enum flash_led_type type = FLASH_LED_TYPE_UNKNOWN;
	int i, rc;
	int i, rc = 0;

	/* Determine which LED type has triggered switch ON */
	for (i = 0; i < led->num_fnodes; i++) {