]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: serqt_usb2: Remove useless variable
authorThomas Vegas <thomas_75@safe-mail.net>
Tue, 1 Apr 2014 16:27:34 +0000 (18:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:16:38 +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 0267dd8b84b76312af096954dda479332280b2ba..90cf2bd6728cc0e6a8f77365257ce0406b4bbd0f 100644 (file)
@@ -993,9 +993,7 @@ static void qt_close(struct usb_serial_port *port)
        struct quatech_port *qt_port;
        struct quatech_port *port0;
        struct tty_struct *tty;
-       int status;
        unsigned int index;
-       status = 0;
 
        tty = tty_port_tty_get(&port->port);
        index = port->port_number;
@@ -1015,8 +1013,7 @@ static void qt_close(struct usb_serial_port *port)
        tty_kref_put(tty);
 
        /* Close uart channel */
-       status = qt_close_channel(serial, index);
-       if (status < 0)
+       if (qt_close_channel(serial, index) < 0)
                dev_dbg(&port->dev, "%s - qt_close_channel failed.\n",
                        __func__);