]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
fm10k: use ether_addr_equal instead of memcmp
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 16 Nov 2015 23:33:34 +0000 (15:33 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 Dec 2015 13:01:58 +0000 (05:01 -0800)
commit6186ddf06dd270a09ca08cc3c182d4cd58cf0218
treef64e0d05cbd85f0107e38a512e0275c7b40fffed
parent09f8a82b6abbff279f41ac2892707d3f0f32d00c
fm10k: use ether_addr_equal instead of memcmp

When comparing MAC addresses, use ether_addr_equal instead of memcmp to
ETH_ALEN length. Found and replaced using the following sed:

 sed -e 's/memcmp\x28\(.*\), ETH_ALEN\x29/!ether_addr_equal\x28\1\x29/'

Reported-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c
drivers/net/ethernet/intel/fm10k/fm10k_pf.c
drivers/net/ethernet/intel/fm10k/fm10k_tlv.c
drivers/net/ethernet/intel/fm10k/fm10k_vf.c