summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPiotr Gardocki <piotrx.gardocki@intel.com>2023-06-14 17:53:02 +0300
committerJakub Kicinski <kuba@kernel.org>2023-06-16 08:54:54 +0300
commit96868cca7971a5a3887717fdacd44b281fb87cc9 (patch)
tree537b64ce7dfc033d6961c43efa1f70b5710c206e /drivers
parentc45a6d1a23c50b97afd7d767b86e28ea5722e7b7 (diff)
downloadlinux-96868cca7971a5a3887717fdacd44b281fb87cc9.tar.xz
ice: remove unnecessary check for old MAC == new MAC
The check has been moved to core. The ndo_set_mac_address callback is not being called with new MAC address equal to the old one anymore. Signed-off-by: Piotr Gardocki <piotrx.gardocki@intel.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index a0283b5bf65f..65bf399a0efc 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -5624,11 +5624,6 @@ static int ice_set_mac_address(struct net_device *netdev, void *pi)
if (!is_valid_ether_addr(mac))
return -EADDRNOTAVAIL;
- if (ether_addr_equal(netdev->dev_addr, mac)) {
- netdev_dbg(netdev, "already using mac %pM\n", mac);
- return 0;
- }
-
if (test_bit(ICE_DOWN, pf->state) ||
ice_is_reset_in_progress(pf->state)) {
netdev_err(netdev, "can't set mac %pM. device not ready\n",