• J
    net, drivers/net: Convert compare_ether_addr_64bits to ether_addr_equal_64bits · a6700db1
    Joe Perches 提交于
    Use the new bool function ether_addr_equal_64bits to add
    some clarity and reduce the likelihood for misuse of
    compare_ether_addr_64bits for sorting.
    
    Done via cocci script:
    
    $ cat compare_ether_addr_64bits.cocci
    @@
    expression a,b;
    @@
    -	!compare_ether_addr_64bits(a, b)
    +	ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	compare_ether_addr_64bits(a, b)
    +	!ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	!ether_addr_equal_64bits(a, b) == 0
    +	ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	!ether_addr_equal_64bits(a, b) != 0
    +	!ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	ether_addr_equal_64bits(a, b) == 0
    +	!ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	ether_addr_equal_64bits(a, b) != 0
    +	ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	!!ether_addr_equal_64bits(a, b)
    +	ether_addr_equal_64bits(a, b)
    Signed-off-by: NJoe Perches <joe@perches.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    a6700db1
eth.c 10.8 KB