* [PATCH 1/1] USB: usb-serial, remove unused variables
@ 2009-07-03 21:09 Jiri Slaby
0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2009-07-03 21:09 UTC (permalink / raw)
To: gregkh; +Cc: linux-usb, linux-kernel, Jiri Slaby
There are some unused variables in serial_do_down. Remove them.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
drivers/usb/serial/usb-serial.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 9e6027b..0d9bd45 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -281,8 +281,6 @@ bailout_serial_put:
static void serial_do_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
or there will be tears */
@@ -290,12 +288,8 @@ static void serial_do_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);
}
--
1.6.3.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-03 21:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 21:09 [PATCH 1/1] USB: usb-serial, remove unused variables Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome