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

pinctrl: lpc18xx: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1292308 ("Missing break in switch")
Addresses-Coverity-ID: 1292309 ("Missing break in switch")
Addresses-Coverity-ID: 1309546 ("Missing break in switch")
Addresses-Coverity-ID: 1357369 ("Missing break in switch")
Addresses-Coverity-ID: 1357389 ("Missing break in switch")
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Gustavo A. R. Silva and committed by
Linus Walleij
d290e096 375fef59

+6
+6
drivers/pinctrl/pinctrl-lpc18xx.c
··· 844 844 *arg = (reg & LPC18XX_SCU_PIN_EHD_MASK) >> LPC18XX_SCU_PIN_EHD_POS; 845 845 switch (*arg) { 846 846 case 3: *arg += 5; 847 + /* fall through */ 847 848 case 2: *arg += 5; 849 + /* fall through */ 848 850 case 1: *arg += 3; 851 + /* fall through */ 849 852 case 0: *arg += 4; 850 853 } 851 854 break; ··· 1063 1060 1064 1061 switch (param_val) { 1065 1062 case 20: param_val -= 5; 1063 + /* fall through */ 1066 1064 case 14: param_val -= 5; 1065 + /* fall through */ 1067 1066 case 8: param_val -= 3; 1067 + /* fall through */ 1068 1068 case 4: param_val -= 4; 1069 1069 break; 1070 1070 default: