Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219965
b: refs/heads/master
c: 584c5b7
h: refs/heads/master
i:
  219963: 8a68ec7
v: v3
  • Loading branch information
Max Vozeler authored and Greg Kroah-Hartman committed Sep 21, 2010
1 parent c5fb1ac commit b7f76d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 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: 0c9a32f0192e656daa2ff3c9149f6d71b4a1b873
refs/heads/master: 584c5b7cf06194464240280483ee0376cdddbbae
16 changes: 3 additions & 13 deletions trunk/drivers/staging/usbip/usbip_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,25 @@ static int event_handler(struct usbip_device *ud)
ud->eh_ops.shutdown(ud);

ud->event &= ~USBIP_EH_SHUTDOWN;

break;
}

/* Stop the error handler. */
if (ud->event & USBIP_EH_BYE)
return -1;

/* Reset the device. */
if (ud->event & USBIP_EH_RESET) {
ud->eh_ops.reset(ud);

ud->event &= ~USBIP_EH_RESET;

break;
}

/* Mark the device as unusable. */
if (ud->event & USBIP_EH_UNUSABLE) {
ud->eh_ops.unusable(ud);

ud->event &= ~USBIP_EH_UNUSABLE;

break;
}

/* NOTREACHED */
printk(KERN_ERR "%s: unknown event\n", __func__);
return -1;
/* Stop the error handler. */
if (ud->event & USBIP_EH_BYE)
return -1;
}

return 0;
Expand Down

0 comments on commit b7f76d2

Please sign in to comment.