mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 05:12:01 +02:00
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: 568fc7ac9b69 ("leds: qti-flash: Handle all-enabled led mask separately")
Change-Id: I77caac87781b7a2ad2de0ecb13c5b3cd9ca3707b
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
This commit is contained in:
parent
e713399a51
commit
0ac549f68c
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user