scsi: Convert uses of compare_ether_addr to ether_addr_equal
Preliminary to removing compare_ether_addr altogether: 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:
Robert Love <robert.w.love@intel.com>
Showing
- drivers/scsi/bnx2fc/bnx2fc_fcoe.c 1 addition, 2 deletionsdrivers/scsi/bnx2fc/bnx2fc_fcoe.c
- drivers/scsi/fcoe/fcoe.c 1 addition, 1 deletiondrivers/scsi/fcoe/fcoe.c
- drivers/scsi/fcoe/fcoe_ctlr.c 11 additions, 11 deletionsdrivers/scsi/fcoe/fcoe_ctlr.c
- drivers/scsi/fcoe/fcoe_sysfs.c 1 addition, 1 deletiondrivers/scsi/fcoe/fcoe_sysfs.c
- drivers/scsi/fnic/fnic_fcs.c 3 additions, 3 deletionsdrivers/scsi/fnic/fnic_fcs.c
Loading
Please register or sign in to comment