Skip to content

Commit

Permalink
USB: usb-serial, remove unused variables
Browse files Browse the repository at this point in the history
There are some unused variables in serial_do_down. Remove them.

Signed-off-by: Jiri Slaby <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jirislaby authored and gregkh committed Sep 23, 2009
1 parent 383cedc commit 75b48f0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}

Expand Down

0 comments on commit 75b48f0

Please sign in to comment.