ice: remove unnecessary VSI assignment
authorTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 14 Jun 2021 21:46:07 +0000 (14:46 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 25 Jun 2021 18:30:50 +0000 (11:30 -0700)
ice_get_vf_vsi() is being called twice for the same VSI. Remove the
unnecessary call/assignment.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c

index 6392e0b31b90f78483cdd16d285ced2bbc695494..2826570dab51bffd26f23c6c51474ef36db8339a 100644 (file)
@@ -1689,7 +1689,6 @@ bool ice_reset_vf(struct ice_vf *vf, bool is_vflr)
                else
                        promisc_m = ICE_UCAST_PROMISC_BITS;
 
-               vsi = ice_get_vf_vsi(vf);
                if (ice_vf_set_vsi_promisc(vf, vsi, promisc_m, true))
                        dev_err(dev, "disabling promiscuous mode failed\n");
        }