forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/hid/hid-logitech-dj.c
....@@ -1217,6 +1217,9 @@
12171217 * 50 msec should gives enough time to the receiver to be ready.
12181218 */
12191219 msleep(50);
1220
+
1221
+ if (retval)
1222
+ return retval;
12201223 }
12211224
12221225 /*
....@@ -1238,7 +1241,7 @@
12381241 buf[5] = 0x09;
12391242 buf[6] = 0x00;
12401243
1241
- hid_hw_raw_request(hdev, REPORT_ID_HIDPP_SHORT, buf,
1244
+ retval = hid_hw_raw_request(hdev, REPORT_ID_HIDPP_SHORT, buf,
12421245 HIDPP_REPORT_SHORT_LENGTH, HID_OUTPUT_REPORT,
12431246 HID_REQ_SET_REPORT);
12441247