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

Input: spaceball - mark expected switch fall-throughs

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

Addresses-Coverity-ID: 114767
Addresses-Coverity-ID: 114768
Addresses-Coverity-ID: 114769
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Gustavo A. R. Silva and committed by
Dmitry Torokhov
005161c8 781f2dd0

+4
+4
drivers/input/joystick/spaceball.c
··· 162 162 break; 163 163 } 164 164 spaceball->escape = 0; 165 + /* fall through */ 165 166 case 'M': 166 167 case 'Q': 167 168 case 'S': ··· 170 169 spaceball->escape = 0; 171 170 data &= 0x1f; 172 171 } 172 + /* fall through */ 173 173 default: 174 174 if (spaceball->escape) 175 175 spaceball->escape = 0; ··· 236 234 input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) | 237 235 BIT_MASK(BTN_B) | BIT_MASK(BTN_C) | 238 236 BIT_MASK(BTN_MODE); 237 + /* fall through */ 239 238 default: 240 239 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) | 241 240 BIT_MASK(BTN_3) | BIT_MASK(BTN_4) | 242 241 BIT_MASK(BTN_5) | BIT_MASK(BTN_6) | 243 242 BIT_MASK(BTN_7) | BIT_MASK(BTN_8); 243 + /* fall through */ 244 244 case SPACEBALL_3003C: 245 245 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) | 246 246 BIT_MASK(BTN_8);