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

pcmcia: db1xxx_ss: Mark expected switch fall-throughs

Mark switch cases where we are expecting to fall through.

This patch fixes the following warnings (Building: db1xxx_defconfig mips):

drivers/pcmcia/db1xxx_ss.c:257:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
drivers/pcmcia/db1xxx_ss.c:269:3: warning: this statement may fall through [-Wimplicit-fallthrough=]

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>

+4
+4
drivers/pcmcia/db1xxx_ss.c
··· 255 255 switch (state->Vcc) { 256 256 case 50: 257 257 ++v; 258 + /* fall through */ 258 259 case 33: 259 260 ++v; 261 + /* fall through */ 260 262 case 0: 261 263 break; 262 264 default: ··· 269 267 switch (state->Vpp) { 270 268 case 12: 271 269 ++p; 270 + /* fall through */ 272 271 case 33: 273 272 case 50: 274 273 ++p; 274 + /* fall through */ 275 275 case 0: 276 276 break; 277 277 default: