Skip to content

Commit

Permalink
ice: remove redundant max_vsi_num variable
Browse files Browse the repository at this point in the history
It is a leftover from previous implementation. Accidentally it wasn't
removed. Do it now.

Commit that has removed it:
commit c1e5da5 ("ice: improve switchdev's slow-path")

Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
  • Loading branch information
Michal Swiatkowski authored and Tony Nguyen committed Nov 13, 2023
1 parent 5a841e4 commit ab5fe17
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/ethernet/intel/ice/ice_eswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ ice_eswitch_release_reprs(struct ice_pf *pf, struct ice_vsi *ctrl_vsi)
static int ice_eswitch_setup_reprs(struct ice_pf *pf)
{
struct ice_vsi *ctrl_vsi = pf->eswitch.control_vsi;
int max_vsi_num = 0;
struct ice_vf *vf;
unsigned int bkt;

Expand Down Expand Up @@ -267,9 +266,6 @@ static int ice_eswitch_setup_reprs(struct ice_pf *pf)
goto err;
}

if (max_vsi_num < vsi->vsi_num)
max_vsi_num = vsi->vsi_num;

netif_napi_add(vf->repr->netdev, &vf->repr->q_vector->napi,
ice_napi_poll);

Expand Down

0 comments on commit ab5fe17

Please sign in to comment.