diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2012-08-08 21:45:50 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-08-15 10:37:23 +0200 |
commit | 94b5485cdd88cb88320c97727382c27e86de3979 (patch) | |
tree | c7d357b2ce16331937ec1f148b86bab09c91637b | |
parent | HID: multitouch: add support for Touch Revolution touchscreens (diff) | |
download | linux-94b5485cdd88cb88320c97727382c27e86de3979.tar.xz linux-94b5485cdd88cb88320c97727382c27e86de3979.zip |
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>
-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) 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; } } |