ice: remove redundant max_vsi_num variable
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tue, 24 Oct 2023 11:09:16 +0000 (13:09 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 13 Nov 2023 19:42:14 +0000 (11:42 -0800)
It is a leftover from previous implementation. Accidentally it wasn't
removed. Do it now.

Commit that has removed it:
commit c1e5da5dd465 ("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>
drivers/net/ethernet/intel/ice/ice_eswitch.c

index e7f1e53314d7683e57eb4be04d43771fa4f8872a..fd8d59f4d97d4f39d26f13edc7166ec4698e354e 100644 (file)
@@ -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;
 
@@ -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);