diff options
Diffstat (limited to 'drivers/hid/hid-multitouch.c')
-rw-r--r-- | drivers/hid/hid-multitouch.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 7b7fdc1149f1..86963a9970ba 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c | |||
@@ -691,12 +691,10 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
691 | struct mt_device *td; | 691 | struct mt_device *td; |
692 | struct mt_class *mtclass = mt_classes; /* MT_CLS_DEFAULT */ | 692 | struct mt_class *mtclass = mt_classes; /* MT_CLS_DEFAULT */ |
693 | 693 | ||
694 | if (id) { | 694 | for (i = 0; mt_classes[i].name ; i++) { |
695 | for (i = 0; mt_classes[i].name ; i++) { | 695 | if (id->driver_data == mt_classes[i].name) { |
696 | if (id->driver_data == mt_classes[i].name) { | 696 | mtclass = &(mt_classes[i]); |
697 | mtclass = &(mt_classes[i]); | 697 | break; |
698 | break; | ||
699 | } | ||
700 | } | 698 | } |
701 | } | 699 | } |
702 | 700 | ||