linux/drivers/staging/vt6655
Joe Perches 8329419a29 Staging: Convert uses of compare_ether_addr to ether_addr_equal
Preliminary to removing compare_ether_addr altogether:

Use the new bool function ether_addr_equal to add
some clarity and reduce the likelihood for misuse
of compare_ether_addr for sorting.

Additionally:

Used is_zero_ether_addr, removed now unused variable
Converted uses of &foo[0] to foo

Done via cocci script: (and a little typing)

$ cat compare_ether_addr.cocci
@@
expression a,b;
@@
-	!compare_ether_addr(a, b)
+	ether_addr_equal(a, b)

@@
expression a,b;
@@
-	compare_ether_addr(a, b)
+	!ether_addr_equal(a, b)

@@
expression a,b;
@@
-	!ether_addr_equal(a, b) == 0
+	ether_addr_equal(a, b)

@@
expression a,b;
@@
-	!ether_addr_equal(a, b) != 0
+	!ether_addr_equal(a, b)

@@
expression a,b;
@@
-	ether_addr_equal(a, b) == 0
+	!ether_addr_equal(a, b)

@@
expression a,b;
@@
-	ether_addr_equal(a, b) != 0
+	ether_addr_equal(a, b)

@@
expression a,b;
@@
-	!!ether_addr_equal(a, b)
+	ether_addr_equal(a, b)

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-17 07:47:44 -07:00
..
80211hdr.h Staging: vt6655: Fixed ERROR: do not use C99 // comments in vt6655/80211hdr.h 2013-05-16 15:52:00 -07:00
80211mgr.c Staging: vt6655: Fixed ERROR: do not use C99 // comments in 80211mgr.c 2013-05-16 15:51:58 -07:00
80211mgr.h Staging: vt6655: Fixed ERROR: do not use C99 // comments in vt6655/80211mgr.h 2013-05-16 15:51:58 -07:00
aes_ccmp.c Staging: vt6655: aes_ccmp: fixed a brace coding style 2013-06-24 15:57:40 -07:00
aes_ccmp.h Staging: vt6655: Fixed ERROR: do not use C99 // comments in vt6655/aes_ccmp.h. 2013-05-16 15:52:00 -07:00
baseband.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
baseband.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
bssdb.c Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
bssdb.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
card.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
card.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
channel.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
channel.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
country.h staging:vt6655:country: Whitespace cleanups 2013-03-18 17:21:35 -07:00
datarate.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
datarate.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
desc.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
device_cfg.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
device_main.c vt6655/trivial: replace numeric with standard PM state macros 2013-07-26 16:30:06 -07:00
device.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
dpc.c Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
dpc.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
hostap.c staging: vt6655: inherit addr_assign_type along with dev_addr 2013-09-03 20:57:50 -04:00
hostap.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
IEEE11h.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
IEEE11h.h staging:vt6655:IEEE11h: Whitespace cleanups 2013-03-18 17:21:34 -07:00
iocmd.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
ioctl.c staging: vt6655: inherit addr_assign_type along with dev_addr 2013-09-03 20:57:50 -04:00
ioctl.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
iowpa.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
iwctl.c Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
iwctl.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
Kconfig
key.c Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
key.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
mac.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
mac.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
Makefile
mib.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
mib.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
michael.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
michael.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
power.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
power.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
rc4.c staging:vt6655:rc4: Whitespace cleanups 2013-03-18 17:21:37 -07:00
rc4.h staging:vt6655:rc4: Whitespace cleanups 2013-03-18 17:21:37 -07:00
rf.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
rf.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
rxtx.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
rxtx.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
srom.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
srom.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
tcrc.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
tcrc.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
test
tether.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
tether.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
tkip.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
tkip.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
tmacro.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
TODO
ttype.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
upc.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
vntconfiguration.dat
vntwifi.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
vntwifi.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wcmd.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wcmd.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wctl.c Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
wctl.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wmgr.c Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
wmgr.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wpa2.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wpa2.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wpa.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wpa.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wpactl.c Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
wpactl.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wroute.c staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00
wroute.h staging: vt6655: Remove unnecessary blank lines 2013-03-25 11:16:17 -07:00