|
@@ -996,7 +996,8 @@ static void hid_process_event(struct hid_device *hid, struct hid_field *field,
|
|
|
struct hid_driver *hdrv = hid->driver;
|
|
|
int ret;
|
|
|
|
|
|
- hid_dump_input(hid, usage, value);
|
|
|
+ if (!list_empty(&hid->debug_list))
|
|
|
+ hid_dump_input(hid, usage, value);
|
|
|
|
|
|
if (hdrv && hdrv->event && hid_match_usage(hid, usage)) {
|
|
|
ret = hdrv->event(hid, field, usage, value);
|