USB: mos7720: remove incorrect read-urb check
[cascardo/linux.git] / drivers / usb / serial / mos7720.c
index 3524a10..b4f219a 100644 (file)
@@ -939,11 +939,6 @@ static void mos7720_bulk_in_callback(struct urb *urb)
        }
        tty_kref_put(tty);
 
-       if (!port->read_urb) {
-               dbg("URB KILLED !!!");
-               return;
-       }
-
        if (port->read_urb->status != -EINPROGRESS) {
                port->read_urb->dev = port->serial->dev;
 
@@ -1786,11 +1781,6 @@ static void mos7720_set_termios(struct tty_struct *tty,
        /* change the port settings to the new ones specified */
        change_port_settings(tty, mos7720_port, old_termios);
 
-       if (!port->read_urb) {
-               dbg("%s", "URB KILLED !!!!!");
-               return;
-       }
-
        if (port->read_urb->status != -EINPROGRESS) {
                port->read_urb->dev = serial->dev;
                status = usb_submit_urb(port->read_urb, GFP_ATOMIC);