summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2012-08-08 21:45:50 +0200
committerJiri Kosina <jkosina@suse.cz>2012-08-15 10:37:23 +0200
commit94b5485cdd88cb88320c97727382c27e86de3979 (patch)
treec7d357b2ce16331937ec1f148b86bab09c91637b /drivers
parent3d77104adb52a177ea85c2ff2311551cef67d52b (diff)
downloadop-kernel-dev-94b5485cdd88cb88320c97727382c27e86de3979.zip
op-kernel-dev-94b5485cdd88cb88320c97727382c27e86de3979.tar.gz
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')
-rw-r--r--drivers/hid/hid-multitouch.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 7b7fdc1..86963a9 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;
}
}
OpenPOWER on IntegriCloud