linux/drivers/net/ethernet/dec/tulip
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
..
21142.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
Kconfig
Makefile
de4x5.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
de4x5.h
de2104x.c de2104x: stop using net_device.{base_addr, irq}. 2012-04-07 11:47:16 +02:00
dmfe.c dmfe: enforce consistent timing delay. 2012-04-17 22:54:13 -04:00
eeprom.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
interrupt.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:48:09 -05:00
media.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
pnic.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
pnic2.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
timer.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
tulip.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
tulip_core.c tulip_core: stop using net_device.{base_addr, irq}. 2012-04-07 11:45:27 +02:00
uli526x.c uli526x: stop using net_device.{base_addr, irq} and convert to __iomem. 2012-04-07 11:47:17 +02:00
winbond-840.c winbond840: stop using net_device.{base_addr, irq}. 2012-04-07 11:45:26 +02:00
xircom_cb.c xircom_cb: stop using net_device.{base_addr, irq} and convert to __iomem. 2012-04-07 11:47:16 +02:00