HID: multitouch: put the case in the right switch statement
authorAlan Cox <alan@linux.intel.com>
Thu, 25 Oct 2012 14:35:25 +0000 (15:35 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 31 Oct 2012 09:42:32 +0000 (10:42 +0100)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
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;