Skip to content

Commit 4d16321

Browse files
committed
leds: pca963: fix misleading indentation
I'm getting warnings: /tmp/next/build/drivers/leds/leds-pca963x.c: In function 'pca963x_register_leds': /tmp/next/build/drivers/leds/leds-pca963x.c:355:3: error: this 'if' clause does not guard... +[-Werror=misleading-indentation] 355 | if (hw_blink) | ^~ /tmp/next/build/drivers/leds/leds-pca963x.c:357:4: note: ...this statement, but the latter is +misleadingly indented as if it were guarded by the 'if' 357 | led->blinking = false; | ^~~ cc1: all warnings being treated as errors Fix the indentation to make them go away. Signed-off-by: Pavel Machek <[email protected]>
1 parent 31fd710 commit 4d16321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/leds-pca963x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static int pca963x_register_leds(struct i2c_client *client,
354354
led->led_cdev.brightness_set_blocking = pca963x_led_set;
355355
if (hw_blink)
356356
led->led_cdev.blink_set = pca963x_blink_set;
357-
led->blinking = false;
357+
led->blinking = false;
358358

359359
init_data.fwnode = child;
360360
/* for backwards compatibility */

0 commit comments

Comments
 (0)