aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-serial.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-07-03 17:09:41 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 09:46:26 -0400
commit75b48f09e577cbb91d9f2a36bede9a2507929714 (patch)
treea1bef72bb4ba385eb31b4288cea8c17e78f6c44b /drivers/usb/serial/usb-serial.c
parent383cedc3bb435de7a27d31a92d622413daa5cb20 (diff)
USB: usb-serial, remove unused variables
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>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r--drivers/usb/serial/usb-serial.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 9d7ca4868d37..54bb37d41916 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -292,8 +292,6 @@ static int serial_open(struct tty_struct *tty, struct file *filp)
292static void serial_down(struct usb_serial_port *port) 292static void serial_down(struct usb_serial_port *port)
293{ 293{
294 struct usb_serial_driver *drv = port->serial->type; 294 struct usb_serial_driver *drv = port->serial->type;
295 struct usb_serial *serial;
296 struct module *owner;
297 295
298 /* 296 /*
299 * The console is magical. Do not hang up the console hardware 297 * The console is magical. Do not hang up the console hardware
@@ -309,12 +307,8 @@ static void serial_down(struct usb_serial_port *port)
309 return; 307 return;
310 308
311 mutex_lock(&port->mutex); 309 mutex_lock(&port->mutex);
312 serial = port->serial;
313 owner = serial->type->driver.owner;
314
315 if (drv->close) 310 if (drv->close)
316 drv->close(port); 311 drv->close(port);
317
318 mutex_unlock(&port->mutex); 312 mutex_unlock(&port->mutex);
319} 313}
320 314