diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2012-08-08 15:45:50 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-08-15 04:37:23 -0400 |
commit | 94b5485cdd88cb88320c97727382c27e86de3979 (patch) | |
tree | c7d357b2ce16331937ec1f148b86bab09c91637b /drivers/hid/hid-multitouch.c | |
parent | 3d77104adb52a177ea85c2ff2311551cef67d52b (diff) |
HID: hid-multitouch: Remove misleading null test
A null test was left behind during the autoloading work;
the test was introduced by 8d179a9e, but was never completely
reverted.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
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 | ||