staging: serqt_usb2: Remove useless variable
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>
This commit is contained in:
parent
482f0a2190
commit
c46e961e5a
1 changed files with 1 additions and 4 deletions
|
@ -993,9 +993,7 @@ static void qt_close(struct usb_serial_port *port)
|
||||||
struct quatech_port *qt_port;
|
struct quatech_port *qt_port;
|
||||||
struct quatech_port *port0;
|
struct quatech_port *port0;
|
||||||
struct tty_struct *tty;
|
struct tty_struct *tty;
|
||||||
int status;
|
|
||||||
unsigned int index;
|
unsigned int index;
|
||||||
status = 0;
|
|
||||||
|
|
||||||
tty = tty_port_tty_get(&port->port);
|
tty = tty_port_tty_get(&port->port);
|
||||||
index = port->port_number;
|
index = port->port_number;
|
||||||
|
@ -1015,8 +1013,7 @@ static void qt_close(struct usb_serial_port *port)
|
||||||
tty_kref_put(tty);
|
tty_kref_put(tty);
|
||||||
|
|
||||||
/* Close uart channel */
|
/* Close uart channel */
|
||||||
status = qt_close_channel(serial, index);
|
if (qt_close_channel(serial, index) < 0)
|
||||||
if (status < 0)
|
|
||||||
dev_dbg(&port->dev, "%s - qt_close_channel failed.\n",
|
dev_dbg(&port->dev, "%s - qt_close_channel failed.\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue