From: Tony Nguyen <[email protected]> Since we now report changes from the link event and changes that occurred from update link info, there is no need to carry the latter info over as it will be handled appropriately by itself.
Signed-off-by: Tony Nguyen <[email protected]> Signed-off-by: Aleksandr Loktionov <[email protected]> --- drivers/net/ethernet/intel/ice/ice_main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index e7308e3..348c86b 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -1127,12 +1127,6 @@ ice_link_event(struct ice_pf *pf, struct ice_port_info *pi, bool link_up, ice_check_link_cfg_err(pf, pi->phy.link_info.link_cfg_err); - /* Check if the link state is up after updating link info, and treat - * this event as an UP event since the link is actually UP now. - */ - if (phy_info->link_info.link_info & ICE_AQ_LINK_UP) - link_up = true; - vsi = ice_get_main_vsi(pf); if (!vsi || !vsi->port_info) return -EINVAL; -- 2.52.0
