Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp638188pxv; Thu, 15 Jul 2021 12:09:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpDWfEOFeWGa5A53PRRmaix9Vrzx7TjgJcuFzWbdl2vzDtJZto4DmUgh+yModvhXk9Cmsy X-Received: by 2002:a17:907:1c8d:: with SMTP id nb13mr7197354ejc.155.1626376165620; Thu, 15 Jul 2021 12:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626376165; cv=none; d=google.com; s=arc-20160816; b=FnqBP/TEL6yw+W4VFIA20aeL2NVhh9iwt4KE2cJ/aa4Qq9T+f7SKRmQ/3F1InEO5BK lmt72xeG5CbZsSfSObqlvmoqWg6kv5vaWXUZUScdgckoNO0G6O30kb5omu1lSyfELsWb KxmQmAgGubBo6FevXXUGQ3pR1F/Rdu5CaF5AKU1KfTlJA9Di4njR1DAOcRSXwtTPaPjI tSA2HNDkVN1UX3gF0QwSE9aE9b1fLKnAbmvYWZw2vDs6vnapoG3O0HWI6izRkEe0x7ti 5Df6TRywdUV8VuKWjqyGJ+oiYNOG4nWt11p1Wr56Jq/hXSPvc0t2ClPSRpJZEzNSrTml J5SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dYQXrceb8XE5/8X8RWAgGauA2/M5vXdlKKaHjNuwqgk=; b=g00Of12OkJJ8gnqL2JztlePB3GeXZbgQ4nsG3ANNXzOzBu7eJ6Ewr3Uxi04nc4wFRC Qz+RrGBPh/0qNwdc90EHScEDXvJHp1Jf8m5D1XixVggWLjCryE5g/XB2cgIeqnAKVC0G BVPUj8tn8l/A2Xo+lAcQU0DAroS2JozJ6gbcgTwQ47HS5MxUcf7wGlWSvtc5vSFW/Vcd xH1j2/79KUkeNpS7iDuyDRVUNq5hkV/YfK4BFZTZ6zmOi3eNMAr7/YLSWhGo3q8FGNlo hXO55/wQ1tbomYW41Wd9Fh5vtJ//uA2STSn51UQweyFdQffT1YhDWa9IDGVciXobDVPI m/pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MAd7ihCu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si9336513edv.565.2021.07.15.12.09.02; Thu, 15 Jul 2021 12:09:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MAd7ihCu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243714AbhGOTKB (ORCPT + 99 others); Thu, 15 Jul 2021 15:10:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:34190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242336AbhGOS7h (ORCPT ); Thu, 15 Jul 2021 14:59:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 739CB613F1; Thu, 15 Jul 2021 18:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375386; bh=C7Rzfp8K1bV0ynqw4Sn0i4znooGYpddfWTaz+sNZ0c0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MAd7ihCuo7bQM+wo6dYD9Lib8ivWGOcfYVaEviH+HVsT1RAxwxRsHRvLzeEG4N4rK XVu/YPjVBbj8y7NphgMn0RqI+JlOxPiDyExFwFpldrIigT1PR5TvO0n9KOpinsrG46 8cXUt76XI0CKAga4cl/Tw2Gv4ZKcs7k/jqQlvXbk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul M Stillwell Jr , Tony Brelinski , Tony Nguyen , Sasha Levin Subject: [PATCH 5.12 063/242] ice: fix clang warning regarding deadcode.DeadStores Date: Thu, 15 Jul 2021 20:37:05 +0200 Message-Id: <20210715182603.648679967@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul M Stillwell Jr [ Upstream commit 7e94090ae13e1ae5fe8bd3a9cd08136260bb7039 ] clang generates deadcode.DeadStores warnings when a variable is used to read a value, but then that value isn't used later in the code. Fix this warning. Signed-off-by: Paul M Stillwell Jr Tested-by: Tony Brelinski Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index f80fff97d8dc..0d136708f960 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -3492,13 +3492,9 @@ static int ice_get_rc_coalesce(struct ethtool_coalesce *ec, enum ice_container_type c_type, struct ice_ring_container *rc) { - struct ice_pf *pf; - if (!rc->ring) return -EINVAL; - pf = rc->ring->vsi->back; - switch (c_type) { case ICE_RX_CONTAINER: ec->use_adaptive_rx_coalesce = ITR_IS_DYNAMIC(rc->itr_setting); @@ -3510,7 +3506,7 @@ ice_get_rc_coalesce(struct ethtool_coalesce *ec, enum ice_container_type c_type, ec->tx_coalesce_usecs = rc->itr_setting & ~ICE_ITR_DYNAMIC; break; default: - dev_dbg(ice_pf_to_dev(pf), "Invalid c_type %d\n", c_type); + dev_dbg(ice_pf_to_dev(rc->ring->vsi->back), "Invalid c_type %d\n", c_type); return -EINVAL; } -- 2.30.2