Skip to content

Commit ab5fe17

Browse files
Michal Swiatkowskianguy11
authored andcommitted
ice: remove redundant max_vsi_num variable
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 <[email protected]> Reviewed-by: Piotr Raczynski <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Signed-off-by: Michal Swiatkowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 5a841e4 commit ab5fe17

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ ice_eswitch_release_reprs(struct ice_pf *pf, struct ice_vsi *ctrl_vsi)
224224
static int ice_eswitch_setup_reprs(struct ice_pf *pf)
225225
{
226226
struct ice_vsi *ctrl_vsi = pf->eswitch.control_vsi;
227-
int max_vsi_num = 0;
228227
struct ice_vf *vf;
229228
unsigned int bkt;
230229

@@ -267,9 +266,6 @@ static int ice_eswitch_setup_reprs(struct ice_pf *pf)
267266
goto err;
268267
}
269268

270-
if (max_vsi_num < vsi->vsi_num)
271-
max_vsi_num = vsi->vsi_num;
272-
273269
netif_napi_add(vf->repr->netdev, &vf->repr->q_vector->napi,
274270
ice_napi_poll);
275271

0 commit comments

Comments
 (0)