Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19300
b: refs/heads/master
c: 97d4ebf
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Jan 31, 2006
1 parent 3fe1f00 commit 6c237d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 275c6ce25d679a4c0981a9a259e60e732a123cc6
refs/heads/master: 97d4ebfe7946bc9b89791c932a15c990a24aa94d
4 changes: 2 additions & 2 deletions trunk/drivers/input/joystick/iforce/iforce-packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
Expand Down Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/joystick/iforce/iforce-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ static void iforce_usb_irq(struct urb *urb, struct pt_regs *regs)
goto exit;
}

wake_up(&iforce->wait);
iforce_process_packet(iforce,
(iforce->data[0] << 8) | (urb->actual_length - 1), iforce->data + 1, regs);

Expand Down

0 comments on commit 6c237d9

Please sign in to comment.