Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp627490pxv; Thu, 15 Jul 2021 11:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuzDTtgBvMoN2cXvnnWSfNe3dtMj/VkKX7A/nZzlaf5L7yh4GjE86eyzxqGYMORQWJYlKZ X-Received: by 2002:a05:6e02:ea9:: with SMTP id u9mr3624761ilj.174.1626375289291; Thu, 15 Jul 2021 11:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375289; cv=none; d=google.com; s=arc-20160816; b=xq3ZX+Y1H4dOZs/iVtTTbisvM8n6PsFKod3vrDaqorOwINyft6MH0LBmtWdOzidAAB 9NwDRREF/IXo0CPqqNZ4JVhT2gAK3pBtxrqxUN/dxP+Gd6IhkY2qoxzDSn3MIAMFFCrl s1VxX/KTlk2xxo6txrEkJPfn4soNh9rXlHfT4P9CIXF4jQA2B0SH+idgOytV1jhA0DFw +8cllld66QorQe7oEJbhdgw04kAL26rDBwP7dO2nEnucN0A+Z/uhvQcZADHyqCrA1LPW aY2+mQBvLKw8J16OTh9CAuKZhwhDlZetmcAWVGYO05WxPPmH8bdCAaSQTTYyLU5iFlYl p8aw== 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=Tj2cmnj7Tq4I5EeqBLa+6Qruh/pE2y6YzQ0mu+LNd/s=; b=KhSKQWOUwnmhVao2peGtE5klC2AyfBBTHkGJ/QGBu/S85zcjreGBlTKO95E3Ol6i3Q squl0StbxcI98VdUIVZNu10gWDDiDXsMViRMltPJuuKpkW3/LlPLDU0nRM1XqG1t3VDn pxR6yNYvQiDnyGLI2Bhu9YlndZZXwNCoidzdA85MMqEoO9PfDmky7Mh9V30XIUFoAplA A87HctxeZak6iMqDUQnD7OZHOi11hgOqmvso7JDNEuzSfk01BlM559rfAFWLSCv/IkJQ uaSWYAM5n5MOUKHQmuErmCopw7BdFtrZ17SysOk6FH78phfV45hYcSFr3+S7V9baJMR1 mNIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gqgwTljV; 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 j23si8296132iog.79.2021.07.15.11.54.37; Thu, 15 Jul 2021 11:54:49 -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=gqgwTljV; 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 S241456AbhGOS5A (ORCPT + 99 others); Thu, 15 Jul 2021 14:57:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:54446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231933AbhGOSvP (ORCPT ); Thu, 15 Jul 2021 14:51:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C7482613DF; Thu, 15 Jul 2021 18:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626374901; bh=+EjrSCLm7Socqe+OOWOjIGaOHL39kZtz9vJx6xZ1JIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gqgwTljVbQjAGk/yl/1FFzEoISz6jK9adjNOBOI7dmy5iIQ1b5Pv+tLhaQBuSZ5CK 8suO0b0zmIievY2ZOxj26F6GDMjVX8XlvWlSURJapifxbx69ywTlNImtMSgq0milDH N8vz/wYJjDMyNZ44OGw4GjmRyL4Fz40yUkfo59Rg= 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.10 057/215] ice: fix clang warning regarding deadcode.DeadStores Date: Thu, 15 Jul 2021 20:37:09 +0200 Message-Id: <20210715182609.520475877@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 a7975afecf70..14eba9bc174d 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