diff options
| author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-10 13:23:59 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-11-10 13:29:55 -0500 |
| commit | c1b433e04ef9c0a1c4d65bfe918472ffa334dff4 (patch) | |
| tree | 2bb22d932d5cc70a89a6d51f0f1c92d468affaec | |
| parent | 56c78bb32b2b1504a18f34e913fe0ccbf074ec21 (diff) | |
Input: gamecon - mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114761
Addresses-Coverity-ID: 114762
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
| -rw-r--r-- | drivers/input/joystick/gamecon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/joystick/gamecon.c b/drivers/input/joystick/gamecon.c index c43f087a496d..ca734ea97e53 100644 --- a/drivers/input/joystick/gamecon.c +++ b/drivers/input/joystick/gamecon.c | |||
| @@ -654,6 +654,7 @@ static void gc_psx_report_one(struct gc_pad *pad, unsigned char psx_type, | |||
| 654 | 654 | ||
| 655 | input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04); | 655 | input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04); |
| 656 | input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02); | 656 | input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02); |
| 657 | /* fall through */ | ||
| 657 | 658 | ||
| 658 | case GC_PSX_NEGCON: | 659 | case GC_PSX_NEGCON: |
| 659 | case GC_PSX_ANALOG: | 660 | case GC_PSX_ANALOG: |
| @@ -887,6 +888,7 @@ static int gc_setup_pad(struct gc *gc, int idx, int pad_type) | |||
| 887 | case GC_SNES: | 888 | case GC_SNES: |
| 888 | for (i = 4; i < 8; i++) | 889 | for (i = 4; i < 8; i++) |
| 889 | __set_bit(gc_snes_btn[i], input_dev->keybit); | 890 | __set_bit(gc_snes_btn[i], input_dev->keybit); |
| 891 | /* fall through */ | ||
| 890 | case GC_NES: | 892 | case GC_NES: |
| 891 | for (i = 0; i < 4; i++) | 893 | for (i = 0; i < 4; i++) |
| 892 | __set_bit(gc_snes_btn[i], input_dev->keybit); | 894 | __set_bit(gc_snes_btn[i], input_dev->keybit); |
| @@ -894,6 +896,7 @@ static int gc_setup_pad(struct gc *gc, int idx, int pad_type) | |||
| 894 | 896 | ||
| 895 | case GC_MULTI2: | 897 | case GC_MULTI2: |
| 896 | __set_bit(BTN_THUMB, input_dev->keybit); | 898 | __set_bit(BTN_THUMB, input_dev->keybit); |
| 899 | /* fall through */ | ||
| 897 | case GC_MULTI: | 900 | case GC_MULTI: |
| 898 | __set_bit(BTN_TRIGGER, input_dev->keybit); | 901 | __set_bit(BTN_TRIGGER, input_dev->keybit); |
| 899 | break; | 902 | break; |
