diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index f9cff93355958af278a80ccc0c1bb22774826e37..bf1f74041dc3d98c2333d5a2985c2a645ce690bd 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1086,7 +1086,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i struct hid_report *report; char *buf; unsigned int i; - int ret; + int ret = 0; if (!hid) return -ENODEV; @@ -1145,7 +1145,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i unlock: up(&hid->driver_lock); - return 0; + return ret; } EXPORT_SYMBOL_GPL(hid_input_report);