提交 75b48f09 编写于 作者: J Jiri Slaby 提交者: Greg Kroah-Hartman

USB: usb-serial, remove unused variables

There are some unused variables in serial_do_down. Remove them.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 383cedc3
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册