summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vegas <thomas_75@safe-mail.net>2014-04-01 16:29:37 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-04 00:16:39 (GMT)
commit5f888cb7b1722412170728df2c9168d47596459c (patch)
tree6c57f974268f0e22ef13a97b26e43cd542d4bc5a
parentf5a7856ec94ce0c1aeeac841d3fa05853f5f53fb (diff)
downloadlinux-5f888cb7b1722412170728df2c9168d47596459c.tar.xz
staging: serqt_usb2: Clean up initializations of variables
Use a more common kernel coding style. Signed-off-by: Thomas Vegas <thomas_75@safe-mail.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/serqt_usb2/serqt_usb2.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c
index f329cb4..998c384 100644
--- a/drivers/staging/serqt_usb2/serqt_usb2.c
+++ b/drivers/staging/serqt_usb2/serqt_usb2.c
@@ -990,16 +990,10 @@ static void qt_block_until_empty(struct tty_struct *tty,
static void qt_close(struct usb_serial_port *port)
{
struct usb_serial *serial = port->serial;
- struct quatech_port *qt_port;
- struct quatech_port *port0;
- struct tty_struct *tty;
- unsigned int index;
-
- 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]);
+ struct tty_struct *tty = tty_port_tty_get(&port->port);
+ unsigned int index = port->port_number;
+ struct quatech_port *qt_port = qt_get_port_private(port);
+ struct quatech_port *port0 = qt_get_port_private(serial->port[0]);
/* shutdown any bulk reads that might be going on */
if (serial->num_bulk_out)