OpenCloudOS-Kernel/drivers/net/ethernet/cisco/enic
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
..
Kconfig
Makefile
cq_desc.h
cq_enet_desc.h enic: Fix endianness bug. 2012-02-24 17:53:03 -05:00
enic.h enic: Fix addr valid check in enic_set_vf_mac 2012-03-08 00:28:19 -08:00
enic_dev.c net: make vlan ndo_vlan_rx_[add/kill]_vid return error value 2011-12-08 19:52:37 -05:00
enic_dev.h net: make vlan ndo_vlan_rx_[add/kill]_vid return error value 2011-12-08 19:52:37 -05:00
enic_main.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
enic_pp.c enic: replace open-coded ARRAY_SIZE with macro 2012-04-13 13:15:14 -04:00
enic_pp.h enic: Add support for port profile association on a enic SRIOV VF 2011-09-27 01:10:24 -04:00
enic_res.c enic: rename CMD_MAC_ADDR to CMD_GET_MAC_ADDR 2012-02-20 00:51:40 -05:00
enic_res.h
rq_enet_desc.h
vnic_cq.c
vnic_cq.h
vnic_dev.c enic: Add new fw devcmd to set mac address of an interface 2012-02-20 00:51:41 -05:00
vnic_dev.h enic: Add new fw devcmd to set mac address of an interface 2012-02-20 00:51:41 -05:00
vnic_devcmd.h enic: Add new fw devcmd to set mac address of an interface 2012-02-20 00:51:41 -05:00
vnic_enet.h
vnic_intr.c
vnic_intr.h
vnic_nic.h
vnic_resource.h
vnic_rq.c drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages 2012-01-31 16:20:21 -05:00
vnic_rq.h
vnic_rss.h
vnic_stats.h
vnic_vic.c
vnic_vic.h
vnic_wq.c drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages 2012-01-31 16:20:21 -05:00
vnic_wq.h
wq_enet_desc.h