diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-04-05 18:20:49 +0000 |
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-04-05 18:20:49 +0000 |
| commit | 39307315677bbff6792775296d86be7942fb4fc8 (patch) | |
| tree | 3cf2863804b1271652221a79f7ee4b84733266b8 /sys/dev/usb/usb_device.c | |
| parent | 4eae601ebd1cb2311c79f5e179c235350252b96b (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/usb_device.c')
| -rw-r--r-- | sys/dev/usb/usb_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index f497b12bc3d4..8d4e573fad06 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -305,16 +305,16 @@ usb2_init_pipe(struct usb2_device *udev, uint8_t iface_index, (methods->pipe_init) (udev, edesc, pipe); - /* check for invalid pipe */ - if (pipe->methods == NULL) - return; - /* initialise USB pipe structure */ pipe->edesc = edesc; pipe->iface_index = iface_index; TAILQ_INIT(&pipe->pipe_q.head); pipe->pipe_q.command = &usb2_pipe_start; + /* the pipe is not supported by the hardware */ + if (pipe->methods == NULL) + return; + /* clear stall, if any */ if (methods->clear_stall != NULL) { USB_BUS_LOCK(udev->bus); |
