touchpad: mark two switch fallthroughs with comments
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 Feb 2015 23:11:46 +0000 (09:11 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 Feb 2015 23:11:46 +0000 (09:11 +1000)
Coverity pointed these out, they're false positives but mark them with
comments to make it obvious to the reader.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-buttons.c

index ca7495f..9dbb513 100644 (file)
@@ -823,6 +823,7 @@ tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
                                break;
                        case BUTTON_EVENT_IN_TOP_L:
                                is_top = 1;
+                               /* fallthrough */
                        case BUTTON_EVENT_IN_BOTTOM_L:
                                button |= LEFT;
                                break;
@@ -832,6 +833,7 @@ tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
                                break;
                        case BUTTON_EVENT_IN_TOP_R:
                                is_top = 1;
+                               /* fallthrough */
                        case BUTTON_EVENT_IN_BOTTOM_R:
                                button |= RIGHT;
                                break;