Input: iforce - fix detection of USB devices
[deliverable/linux.git] / drivers / input / joystick / iforce / iforce-packets.c
index 4a2629243e1964461c60ae4e3c5587231bb6ec0a..76cb1f88f4e83d4177b8cb8c281861aef50325df 100644 (file)
@@ -167,9 +167,9 @@ void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data,
                iforce->expect_packet = 0;
                iforce->ecmd = cmd;
                memcpy(iforce->edata, data, IFORCE_MAX_LENGTH);
-               wake_up(&iforce->wait);
        }
 #endif
+       wake_up(&iforce->wait);
 
        if (!iforce->type) {
                being_used--;
@@ -264,7 +264,7 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet)
                wait_event_interruptible_timeout(iforce->wait,
                        iforce->ctrl->status != -EINPROGRESS, HZ);
 
-               if (iforce->ctrl->status != -EINPROGRESS) {
+               if (iforce->ctrl->status) {
                        usb_unlink_urb(iforce->ctrl);
                        return -1;
                }
This page took 0.026641 seconds and 5 git commands to generate.