lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4b3f4209cf5a187c093d964f424a4344@mwinf5d45.me-wanadoo.net>
Date:	Tue, 1 Apr 2014 18:27:34 +0200
From:	Thomas Vegas <thomas_75@...e-mail.net>
To:	gregkh@...uxfoundation.org
Cc:	devel@...verdev.osuosl.org
Subject: [PATCH v4 1/3] staging: serqt_usb2: Remove useless variable

Use a more common kernel coding style.

Signed-off-by: Thomas Vegas <thomas_75@...e-mail.net>
---
 drivers/staging/serqt_usb2/serqt_usb2.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c
index 0267dd8..90cf2bd 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__);
 
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ