Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp553577ybv; Sat, 22 Feb 2020 09:11:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxyMBBIRmB1IleeVqmtmkUrpotf3u/fkB/3wo0cv4FX4K1Dl4FgrUB9HeUgsUS4YGtalK+G X-Received: by 2002:a9d:7dc9:: with SMTP id k9mr33153958otn.117.1582391482380; Sat, 22 Feb 2020 09:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582391482; cv=none; d=google.com; s=arc-20160816; b=P9yJiQ8409JbspncbB2WNJ8TB4Gk7P5dGTpO/yLMNF5mQX4fE4eG86bjfVcZiwH5L/ DAw+POS3d9hAmO6UYQ2Gw8kR7n1nNK9hPpG6yKtgWOSlQeRq5Md7N6mhaD8XNe1f+8Hn ah01dWup7ki/Td9yIv3vOUwAwGU7iKpZyPEWheRhLkdjr6UtWb7tM8ePrLXUwww35EhZ Oyk8MFZJKU3PYr/l65Fwp83Xr3K5iO63MgW1Jz/GxSKcy7vJWNofPb4ZNVp/7dnQZPmO YXF5to8Oj9DcSv8YOa1+DYr0vtn38OGiuhm9Wxax/SVbRiKxssLggE/kOI1NztpR3TBT 7EYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=bou5PngmHxJR1UFDSlvTw+tKU8sZpRJTO0zpP97s7Mc=; b=mdFInxcWCNxvo7CYghTEyxJD/FpBvRHl+PqmfkUvbnTTrBI2+kfHrA/6gbam60SZ1O u2AAWTHD4iWjH/ZT/x4PXSAAhNNpBLVdUW9JX6KkTbxzdZQv6UyCwveoDJUkx9onFR9J mpbIvzHssfW+INMfmfkDL3yhFqWZjWz/Xk6DkCrfVu5QeZpjWtfV9wVtAQGSgWuGyo43 JG//Ni36U52/eAJ7UEQ/nsZs1wvWtrM0XtKBrWS94EtZObKevE8XGU8ES3UxbzbqwYR9 Z9o05phjcx4Q69TGNvldXucCbu+XnecYpWUnQcNGLG9yvAq6ne8H7gpSlxvT+z8aBM2d 3tKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si3432227ote.187.2020.02.22.09.11.09; Sat, 22 Feb 2020 09:11:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbgBVRLD (ORCPT + 99 others); Sat, 22 Feb 2020 12:11:03 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:56435 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbgBVRLD (ORCPT ); Sat, 22 Feb 2020 12:11:03 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j5YIp-00056G-1O; Sat, 22 Feb 2020 17:10:55 +0000 From: Colin King To: Jeff Kirsher , "David S . Miller" , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] ice: remove redundant assignment to pointer vsi Date: Sat, 22 Feb 2020 17:10:54 +0000 Message-Id: <20200222171054.171505-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King 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 --- drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c b/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c index 169b72a94b9d..2c8e334c47a0 100644 --- a/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c @@ -2191,7 +2191,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_BASE_QS_PER_VF) { if (!ice_vc_isvalid_q_id(vf, vqs->vsi_id, vf_q_id)) { -- 2.25.0