Skip to content

Commit 5340f23

Browse files
GustavoARSilvaLinus Walleij
authored andcommitted
gpio: sprd: Add missing break in switch statement
Fix the following warning by adding a missing break: drivers/gpio/gpio-eic-sprd.c: In function ‘sprd_eic_irq_set_type’: drivers/gpio/gpio-eic-sprd.c:403:3: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (flow_type) { ^~~~~~ drivers/gpio/gpio-eic-sprd.c:435:2: note: here default: ^~~~~~~ This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent c2df3de commit 5340f23

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/gpio/gpio-eic-sprd.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ static int sprd_eic_irq_set_type(struct irq_data *data, unsigned int flow_type)
420420
default:
421421
return -ENOTSUPP;
422422
}
423+
break;
423424
default:
424425
dev_err(chip->parent, "Unsupported EIC type.\n");
425426
return -ENOTSUPP;

0 commit comments

Comments
 (0)