HID: multitouch: put the case in the right switch statement
authorAlan Cox <[email protected]>
Thu, 25 Oct 2012 14:35:25 +0000 (15:35 +0100)
committerJiri Kosina <[email protected]>
Wed, 31 Oct 2012 09:42:32 +0000 (10:42 +0100)
Signed-off-by: Alan Cox <[email protected]>
Acked-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-multitouch.c

index 3eb02b94fc87c8a3bc903474db7c3b55efd5ead5..c97011cdf852af222cd4ca27a62976cb04587f03 100644 (file)
@@ -421,11 +421,11 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
                         * contact max are global to the report */
                        td->last_field_index = field->index;
                        return -1;
-               }
                case HID_DG_TOUCH:
                        /* Legacy devices use TIPSWITCH and not TOUCH.
                         * Let's just ignore this field. */
                        return -1;
+               }
                /* let hid-input decide for the others */
                return 0;