OSDN Git Service

ice: remove redundant assignment to pointer vsi
authorColin Ian King <colin.king@canonical.com>
Sat, 22 Feb 2020 17:10:54 +0000 (17:10 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 22 Apr 2021 16:26:22 +0000 (09:26 -0700)
Pointer vsi is being re-assigned a value that is never read,
the assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c

index 1292a0b..c40560a 100644 (file)
@@ -2792,7 +2792,6 @@ static int ice_vc_ena_qs_msg(struct ice_vf *vf, u8 *msg)
                set_bit(vf_q_id, vf->rxq_ena);
        }
 
-       vsi = pf->vsi[vf->lan_vsi_idx];
        q_map = vqs->tx_queues;
        for_each_set_bit(vf_q_id, &q_map, ICE_MAX_RSS_QS_PER_VF) {
                if (!ice_vc_isvalid_q_id(vf, vqs->vsi_id, vf_q_id)) {