···10751075 */10761076int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int interrupt)10771077{10781078- struct hid_report_enum *report_enum = hid->report_enum + type;10791079- struct hid_driver *hdrv = hid->driver;10781078+ struct hid_report_enum *report_enum;10791079+ struct hid_driver *hdrv;10801080 struct hid_report *report;10811081 unsigned int i;10821082 int ret;1083108310841084 if (!hid || !hid->driver)10851085 return -ENODEV;10861086+ report_enum = hid->report_enum + type;10871087+ hdrv = hid->driver;1086108810871089 if (!size) {10881090 dbg_hid("empty report\n");
+3-1
drivers/hid/usbhid/hiddev.c
···527527 goto goodreturn;528528529529 case HIDIOCGCOLLECTIONINDEX:530530+ i = field->usage[uref->usage_index].collection_index;531531+ unlock_kernel();530532 kfree(uref_multi);531531- return field->usage[uref->usage_index].collection_index;533533+ return i;532534 case HIDIOCGUSAGES:533535 for (i = 0; i < uref_multi->num_values; i++)534536 uref_multi->values[i] =