USB: mos7720: remove unused code
authorJohan Hovold <jhovold@gmail.com>
Sun, 6 Nov 2011 18:06:27 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 18:33:14 +0000 (10:33 -0800)
Remove variable port0 from open as it is not used.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/mos7720.c

index b4f219ad2ea25b79e1eb228da8af75c6bc8930d1..51b56b0c42283ab2b7ff7f4b4e6b071761b3fe37 100644 (file)
@@ -1009,7 +1009,6 @@ static int mos77xx_calc_num_ports(struct usb_serial *serial)
 static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port)
 {
        struct usb_serial *serial;
-       struct usb_serial_port *port0;
        struct urb *urb;
        struct moschip_port *mos7720_port;
        int response;
@@ -1024,8 +1023,6 @@ static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port)
        if (mos7720_port == NULL)
                return -ENODEV;
 
-       port0 = serial->port[0];
-
        usb_clear_halt(serial->dev, port->write_urb->pipe);
        usb_clear_halt(serial->dev, port->read_urb->pipe);