kernel-fxtec-pro1x/drivers/net/ethernet/qlogic/qlcnic
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
..
Makefile
qlcnic.h qlcnic: Allow a predefined set of capture masks for FW dump 2012-04-27 00:03:35 -04:00
qlcnic_ctx.c qlcnic: Adding mac statistics to ethtool. 2012-04-27 00:03:35 -04:00
qlcnic_ethtool.c qlcnic: Allow a predefined set of capture masks for FW dump 2012-04-27 00:03:35 -04:00
qlcnic_hdr.h qlcnic: Allow a predefined set of capture masks for FW dump 2012-04-27 00:03:35 -04:00
qlcnic_hw.c net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
qlcnic_init.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-08 18:46:38 -05:00
qlcnic_main.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00