Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gustavo A. R. Silva and committed by
Linus Walleij
5340f23d c2df3de0

+1
+1
drivers/gpio/gpio-eic-sprd.c
··· 420 420 default: 421 421 return -ENOTSUPP; 422 422 } 423 + break; 423 424 default: 424 425 dev_err(chip->parent, "Unsupported EIC type.\n"); 425 426 return -ENOTSUPP;