mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04: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: 568fc7ac9b ("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
e445c18900
commit
fb8d6d4967
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue