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

Commit b9a830f3 authored by Kiran Gunda's avatar Kiran Gunda Committed by Gerrit - the friendly Code Review server
Browse files

leds: qti-tri-led: Fix uninitialized variable error



Fix the uninitialized variable error reported by static analyzer.

CRs-fixed: 2206448
Change-Id: Ic77998c2b175b3d8276ad9d9e94815ba69fa5733
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent 967c44cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -358,7 +358,7 @@ static int qpnp_tri_led_parse_dt(struct qpnp_tri_led_chip *chip)
	struct qpnp_led_dev *led;
	struct qpnp_led_dev *led;
	struct pwm_args pargs;
	struct pwm_args pargs;
	const __be32 *addr;
	const __be32 *addr;
	int rc, id, i = 0;
	int rc = 0, id, i = 0;


	addr = of_get_address(chip->dev->of_node, 0, NULL, NULL);
	addr = of_get_address(chip->dev->of_node, 0, NULL, NULL);
	if (!addr) {
	if (!addr) {