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: <CAHnt0GV7=2CkBpk0WJbqxfudqe-jEJKySeL8sY9OjD=b7EZ-qg@mail.gmail.com>
Date:	Mon, 16 Mar 2015 22:19:16 +0800
From:	Peter Teoh <htmldeveloper@...il.com>
To:	Brett Rudley <brudley@...adcom.com>,
	Arend van Spriel <arend@...adcom.com>,
	"Franky (Zhenhui) Lin" <frankyl@...adcom.com>,
	Hante Meuleman <meuleman@...adcom.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 5/5] drivers/net/wireless/brcm80211/brcmsmac/main.c: don't use
 unmodified return variable name

Discovered by Coccinelle.   Removed the use of variable for storing
returning values, which is un-modified / un-used throughout.

Signed-off-by: Peter Teoh <htmldeveloper@...il.com

diff -u -p a/drivers/net/wireless/brcm80211/brcmsmac/main.c
b/drivers/net/wireless/brcm80211/brcmsmac/main.c
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
@@ -5107,9 +5106,7 @@ int brcms_c_up(struct brcms_c_info *wlc)

 static uint brcms_c_down_del_timer(struct brcms_c_info *wlc)
 {
-       uint callbacks = 0;
-
-       return callbacks;
+       return 0;
 }

 static int brcms_b_bmac_down_prep(struct brcms_hardware *wlc_hw)
--
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