OpenCloudOS-Kernel/drivers/net/ethernet/amd
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
..
7990.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
7990.h
Kconfig drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
Makefile
a2065.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:41:20 -05:00
a2065.h
am79c961a.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
am79c961a.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
amd8111e.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
amd8111e.h module_param: make bool parameters really bool (net & drivers/net) 2011-12-19 22:27:29 -05:00
ariadne.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:41:20 -05:00
ariadne.h
atarilance.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:41:20 -05:00
au1000_eth.c au1000_eth: use eth_hw_addr_random() instead of random_ether_addr() 2012-02-17 15:52:30 -05:00
au1000_eth.h
declance.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
depca.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
depca.h
hplance.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
hplance.h
lance.c
mvme147.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ni65.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:41:20 -05:00
ni65.h
nmclan_cs.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
pcnet32.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:41:20 -05:00
sun3lance.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:41:20 -05:00
sunlance.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00