linux/drivers/net/wireless/iwlegacy
Joe Perches 2e42e4747e drivers/net: Convert compare_ether_addr to ether_addr_equal
Use the new bool function ether_addr_equal to add
some clarity and reduce the likelihood for misuse
of compare_ether_addr for sorting.

Done via cocci script:

$ 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: David S. Miller <davem@davemloft.net>
2012-05-10 23:33:01 -04:00
..
3945-debug.c iwlegacy: move debugfs_ops to il_priv 2012-02-22 14:51:13 -05:00
3945-mac.c iwlegacy: do not nulify il->vif on reset 2012-03-26 15:07:22 -04:00
3945-rs.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
3945.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
3945.h iwlegacy: move debugfs_ops to il_priv 2012-02-22 14:51:13 -05:00
4965-calib.c iwlegacy: remove enum iw_calib and related code 2012-02-29 14:14:55 -05:00
4965-debug.c iwlegacy: move debugfs_ops to il_priv 2012-02-22 14:51:13 -05:00
4965-mac.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
4965-rs.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2012-04-12 13:49:28 -04:00
4965.c iwlegacy: merge all ops structures into one 2012-02-22 14:51:15 -05:00
4965.h iwlegacy: remove enum iw_calib and related code 2012-02-29 14:14:55 -05:00
Kconfig iwlegacy: Kconfig: Change Debug Option to be more clear 2012-02-29 14:14:55 -05:00
Makefile iwlegacy: rename iwl-debug.c to debug.c 2011-11-15 14:24:36 +01:00
commands.h iwlegacy: indentions and whitespaces 2011-11-15 14:45:59 +01:00
common.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
common.h iwlegacy: remove unused enum il4965_calib_enabled_state 2012-02-29 14:14:55 -05:00
csr.h iwlegacy: indentions and whitespaces 2011-11-15 14:45:59 +01:00
debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
iwl-spectrum.h iwlegacy: rename iwl to il 2011-11-15 11:16:58 +01:00
prph.h iwlegacy: indentions and whitespaces 2011-11-15 14:45:59 +01:00