From: Johan Hovold Date: Thu, 16 Mar 2017 16:13:44 +0000 (+0100) Subject: USB: serial: io_ti: drop redundant read-urb check X-Git-Tag: v4.14-rc1~993^2~9^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=772b2c5d6c929d9d35e9c915dea8df8c6a799aed;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index a962082..f3ed131 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);