]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/hid/hid-sensor-hub.c
Merge branches 'for-3.7/upstream-fixes', 'for-3.8/hidraw', 'for-3.8/i2c-hid', 'for...
[karo-tx-linux.git] / drivers / hid / hid-sensor-hub.c
index ca88ddc2d78ff1d0fab418de7bc6b3c6f71f3e17..0bc58bd8d4f5a9e496187310326aff7e031e74f0 100644 (file)
@@ -420,9 +420,6 @@ static int sensor_hub_raw_event(struct hid_device *hdev,
        ptr = raw_data;
        ptr++; /*Skip report id*/
 
-       if (!report)
-               goto err_report;
-
        spin_lock_irqsave(&pdata->lock, flags);
 
        for (i = 0; i < report->maxfield; ++i) {
@@ -468,7 +465,6 @@ static int sensor_hub_raw_event(struct hid_device *hdev,
                                callback->pdev);
        spin_unlock_irqrestore(&pdata->lock, flags);
 
-err_report:
        return 1;
 }