USB: usb-serial, remove unused variables
authorJiri Slaby <jirislaby@gmail.com>
Fri, 3 Jul 2009 21:09:41 +0000 (23:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:26 +0000 (06:46 -0700)
There are some unused variables in serial_do_down. Remove them.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c

index 9d7ca4868d37cf642ba47fa1f34caa122d14be92..54bb37d419169b36fc5d9b603e4d2b395adbbcf8 100644 (file)
@@ -292,8 +292,6 @@ static int serial_open(struct tty_struct *tty, struct file *filp)
 static void serial_down(struct usb_serial_port *port)
 {
        struct usb_serial_driver *drv = port->serial->type;
-       struct usb_serial *serial;
-       struct module *owner;
 
        /*
         * The console is magical.  Do not hang up the console hardware
@@ -309,12 +307,8 @@ static void serial_down(struct usb_serial_port *port)
                return;
 
        mutex_lock(&port->mutex);
-       serial = port->serial;
-       owner = serial->type->driver.owner;
-
        if (drv->close)
                drv->close(port);
-
        mutex_unlock(&port->mutex);
 }