kernel/drivers/hid/hid-logitech-dj.c
.. .. @@ -1217,6 +1217,9 @@ 1217 1217 * 50 msec should gives enough time to the receiver to be ready. 1218 1218 */ 1219 1219 msleep(50); 1220 +1221 + if (retval)1222 + return retval;1220 1223 } 1221 1224 1222 1225 /* .. .. @@ -1238,7 +1241,7 @@ 1238 1241 buf[5] = 0x09; 1239 1242 buf[6] = 0x00; 1240 1243 1241 - hid_hw_raw_request(hdev, REPORT_ID_HIDPP_SHORT, buf,1244 + retval = hid_hw_raw_request(hdev, REPORT_ID_HIDPP_SHORT, buf,1242 1245 HIDPP_REPORT_SHORT_LENGTH, HID_OUTPUT_REPORT, 1243 1246 HID_REQ_SET_REPORT); 1244 1247