From e3bbe8755c9c947d80f88c8a2a81073dbc01bd1f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 20 Nov 2012 16:33:14 +0000 Subject: HID: sensor-hub: Remove pointless NULL check report cannot be NULL, fortunately as we use it before we check ! Signed-off-by: Alan Cox Signed-off-by: Jiri Kosina --- drivers/hid/hid-sensor-hub.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'drivers/hid/hid-sensor-hub.c') diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index d9d73e9163eb..4ff24977544d 100644 --- a/drivers/hid/hid-sensor-hub.c +++ b/drivers/hid/hid-sensor-hub.c @@ -437,9 +437,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) { @@ -485,7 +482,6 @@ static int sensor_hub_raw_event(struct hid_device *hdev, callback->pdev); spin_unlock_irqrestore(&pdata->lock, flags); -err_report: return 1; } -- cgit v1.2.1