Skip to content

Commit fb0f405

Browse files
ColinIanKingpavelmachek
authored andcommitted
leds: lp55xx: remove variable j
The variable j being incremented but it is never referenced, it is redundant and can be removed. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent 38bcb51 commit fb0f405

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/leds/leds-lp55xx-common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static int lp55xx_init_led(struct lp55xx_led *led,
166166
struct mc_subled *mc_led_info;
167167
struct led_classdev *led_cdev;
168168
char name[32];
169-
int i, j = 0;
169+
int i;
170170
int ret;
171171

172172
if (chan >= max_channel) {
@@ -201,7 +201,6 @@ static int lp55xx_init_led(struct lp55xx_led *led,
201201
pdata->led_config[chan].color_id[i];
202202
mc_led_info[i].channel =
203203
pdata->led_config[chan].output_num[i];
204-
j++;
205204
}
206205

207206
led->mc_cdev.subled_info = mc_led_info;

0 commit comments

Comments
 (0)