Skip to content

Commit 70fa0a0

Browse files
committed
ice: remove unnecessary VSI assignment
ice_get_vf_vsi() is being called twice for the same VSI. Remove the unnecessary call/assignment. Signed-off-by: Tony Nguyen <[email protected]> Tested-by: Tony Brelinski <[email protected]>
1 parent 37c5920 commit 70fa0a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,6 @@ bool ice_reset_vf(struct ice_vf *vf, bool is_vflr)
16891689
else
16901690
promisc_m = ICE_UCAST_PROMISC_BITS;
16911691

1692-
vsi = ice_get_vf_vsi(vf);
16931692
if (ice_vf_set_vsi_promisc(vf, vsi, promisc_m, true))
16941693
dev_err(dev, "disabling promiscuous mode failed\n");
16951694
}

0 commit comments

Comments
 (0)