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. */
ud->eh_ops.unusable(ud);
ud->event &= ~USBIP_EH_UNUSABLE;
+
+ break;
}
- /* Stop the error handler. */
- if (ud->event & USBIP_EH_BYE)
- return -1;
+ /* NOTREACHED */
+ printk(KERN_ERR "%s: unknown event\n", __func__);
+ return -1;
}
return 0;