Skip to contentSkip to conversation

USB: usb-serial, remove unused variables

PATCH New Jiri Slaby 1 participant 1 message Jul 3, 2009

Subsystems (2)
lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 USB: usb-serial, remove unused variables

There are some unused variables in serial_do_down. Remove them.

---
 drivers/usb/serial/usb-serial.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
drivers/usb/serial/usb-serial.c +0 -6
index 9e6027b..0d9bd45 100644
@@ -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);
 }
 
Signature · 1 line
1.6.3.2