]> git.karo-electronics.de Git - linux-beck.git/commitdiff
HID: hid-multitouch: Remove misleading null test
authorHenrik Rydberg <rydberg@euromail.se>
Wed, 8 Aug 2012 19:45:50 +0000 (21:45 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 15 Aug 2012 08:37:23 +0000 (10:37 +0200)
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>
drivers/hid/hid-multitouch.c

index 7b7fdc1149f146f5c49b6ced5551e502db48e8de..86963a9970ba8a0ac53a65bd7e41985083a00071 100644 (file)
@@ -691,12 +691,10 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)
        struct mt_device *td;
        struct mt_class *mtclass = mt_classes; /* MT_CLS_DEFAULT */
 
-       if (id) {
-               for (i = 0; mt_classes[i].name ; i++) {
-                       if (id->driver_data == mt_classes[i].name) {
-                               mtclass = &(mt_classes[i]);
-                               break;
-                       }
+       for (i = 0; mt_classes[i].name ; i++) {
+               if (id->driver_data == mt_classes[i].name) {
+                       mtclass = &(mt_classes[i]);
+                       break;
                }
        }