diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-16 19:13:44 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-03-28 12:00:11 +0300 |
commit | 772b2c5d6c929d9d35e9c915dea8df8c6a799aed (patch) | |
tree | 007d9604e8af9cc7eb3bc7b5551fe519e7af17e8 /drivers/usb/serial | |
parent | 9c8299b43e577828057988eb8bd4920ab656022b (diff) | |
download | linux-772b2c5d6c929d9d35e9c915dea8df8c6a799aed.tar.xz |
USB: serial: io_ti: drop redundant read-urb check
Drop the redundant read-urb check from open. The presence of a bulk-in
endpoint is now verified during probe and core has allocated the
corresponding resources.
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/io_ti.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index a962082cf3b0..f3ed131d14bf 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -1952,12 +1952,6 @@ static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) /* start up our bulk read urb */ urb = port->read_urb; - if (!urb) { - dev_err(&port->dev, "%s - no read urb present, exiting\n", - __func__); - status = -EINVAL; - goto unlink_int_urb; - } edge_port->ep_read_urb_state = EDGE_READ_URB_RUNNING; urb->context = edge_port; status = usb_submit_urb(urb, GFP_KERNEL); |