staging: serqt_usb2: Clean up initializations of variables
authorThomas Vegas <thomas_75@safe-mail.net>
Tue, 1 Apr 2014 16:29:37 +0000 (18:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:16:39 +0000 (20:16 -0400)
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>
drivers/staging/serqt_usb2/serqt_usb2.c

index f329cb4d632383aa820b300a62da47658389497a..998c3845421d26761410ea38a476feb63780286f 100644 (file)
@@ -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)