提交 5f888cb7 编写于 作者: T Thomas Vegas 提交者: Greg Kroah-Hartman

staging: serqt_usb2: Clean up initializations of variables

Use a more common kernel coding style.
Signed-off-by: NThomas Vegas <thomas_75@safe-mail.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f5a7856e
...@@ -990,16 +990,10 @@ static void qt_block_until_empty(struct tty_struct *tty, ...@@ -990,16 +990,10 @@ static void qt_block_until_empty(struct tty_struct *tty,
static void qt_close(struct usb_serial_port *port) static void qt_close(struct usb_serial_port *port)
{ {
struct usb_serial *serial = port->serial; struct usb_serial *serial = port->serial;
struct quatech_port *qt_port; struct tty_struct *tty = tty_port_tty_get(&port->port);
struct quatech_port *port0; unsigned int index = port->port_number;
struct tty_struct *tty; struct quatech_port *qt_port = qt_get_port_private(port);
unsigned int index; struct quatech_port *port0 = qt_get_port_private(serial->port[0]);
tty = tty_port_tty_get(&port->port);
index = port->port_number;
qt_port = qt_get_port_private(port);
port0 = qt_get_port_private(serial->port[0]);
/* shutdown any bulk reads that might be going on */ /* shutdown any bulk reads that might be going on */
if (serial->num_bulk_out) if (serial->num_bulk_out)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册