]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/serial/whiteheat.c
USB: fix NULL pointer dereference on drivers/usb/serial/whiteheat.c
[linux-2.6-omap-h63xx.git] / drivers / usb / serial / whiteheat.c
index ee5dd8b5a7131b23846d153586686f1163fa7dec..f5033d482eeec1060fd57fbb85388503ad405e40 100644 (file)
@@ -610,8 +610,7 @@ static int whiteheat_open (struct usb_serial_port *port, struct file *filp)
        if (retval)
                goto exit;
 
-       if (port->tty)
-               port->tty->low_latency = 1;
+       port->tty->low_latency = 1;
 
        /* send an open port command */
        retval = firm_open(port);