From: Thomas Vegas Date: Tue, 1 Apr 2014 16:27:34 +0000 (+0200) Subject: staging: serqt_usb2: Remove useless variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c46e961e5ad19d5595dfe07d77c26eced8093ec9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: serqt_usb2: Remove useless variable Use a more common kernel coding style. Signed-off-by: Thomas Vegas Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c index 0267dd8b84b7..90cf2bd6728c 100644 --- a/drivers/staging/serqt_usb2/serqt_usb2.c +++ b/drivers/staging/serqt_usb2/serqt_usb2.c @@ -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__);