Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3523779ybg; Mon, 28 Oct 2019 14:18:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHF3opapWyjnBNwmf29r3sbh5atwsyEyKAfbLIz0yvVrpORahrnzkXIKqGZbQEyBTW+d4T X-Received: by 2002:a50:b2c4:: with SMTP id p62mr21556110edd.128.1572297525071; Mon, 28 Oct 2019 14:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572297525; cv=none; d=google.com; s=arc-20160816; b=GyhfTwzzNOjBCpcvWK4I5UGkm/7B3oXKWpMSg4YMsxQog4fiWiJaGC3RApgw+TDwY5 QCI+HRIJCVJ0VD20yOM46BsY3AluAEj293tZSxOLOt47TJ3+uewhpmxORxXfdv0/Oppy xI0ECyneau+y+MsQjp9iQhppTWlRE98CG8irVcCy9GFyh+sj+ViEXGgFEbKbx9eNZ3rE 080XBMPivUylT5LaYTszSiYqjimp+8y17GGxjp5Jx9GcJAFm+Da94OVTnjvsn7063ubv w7/HgefrWj3EMwoHPqbSSirTiY4UeyUstj6AO6XSltEqF/a9/DklxO/zXKCS49zt3MHg s54A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=SQuBb1DCXEr8h1ECCdUIOg6XQFl3p+ONu+5Oivf+rCw=; b=Ro3WLGL8R7+0HUA7fDafpvprMOqprec2ni8u72Bgu8m60szyVmz5CMWK5Ut5hyReCL yWfXxMt6Iqz7crisIogyiHt/REANwkfdAlGp5VYpijSdK8RDKOgWHuL/MYVB5fT0Y1dy 03faCaWKYNmG3d2d9iptsyWZsi+ndt/wbPXY3qmja+k5ljLJ3ccnyeekIgpq2YVleMHN AIbggRf8t9gBQ4/WmpgAHugKQapb5T6f8dYvlc/ukn9IjppcaJIm95e3KQLxo0UReibm e2r6VI9IS9tPUZUiZ86OJBimaEuowATMjH3hCmOyLA6Wj+9mHg63xnF7Rc00WMH1lqjJ Bl9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b=TZgFUJfk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo19si1306726ejb.242.2019.10.28.14.18.21; Mon, 28 Oct 2019 14:18:45 -0700 (PDT) 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; dkim=fail header.i=@pensando.io header.s=google header.b=TZgFUJfk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391028AbfJ1QaY (ORCPT + 99 others); Mon, 28 Oct 2019 12:30:24 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42532 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730711AbfJ1QaY (ORCPT ); Mon, 28 Oct 2019 12:30:24 -0400 Received: by mail-pf1-f196.google.com with SMTP id 21so7202142pfj.9 for ; Mon, 28 Oct 2019 09:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=SQuBb1DCXEr8h1ECCdUIOg6XQFl3p+ONu+5Oivf+rCw=; b=TZgFUJfk5s8fMqvLgcfoSfoH5/QODG8LGopHISdASnARo4nD5nanqf1siljcA53hK2 vJV+9nCLl0JOol9OWtGW3dmp1E7ZDBU0UEuiti6O/DqNrFSqJ77V0D3IEYEtKDcnK9Um QGEeQDx4e6qmmuWaIINHFTEbknU1vbikTO+mRvMgYxMuy3yZaHEtfeVlJddlIByq/prL 799VU5HYR/o4NpDliCg+aylRupNiBLgPSypRvBKwYSsE6CRaVMKoaqc8TJNTvyOhaXFE EN/RcKC8UUtXz5aJSwfkCKgSnPJuKEFnV3x7+pKGwJXLIWyxJ0k3Rs2Hp/eAWkBEeWeh Wj2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=SQuBb1DCXEr8h1ECCdUIOg6XQFl3p+ONu+5Oivf+rCw=; b=WNq7A51whTsQh0VEf9J/+vvj5tqLvyEM5ENYJ79WM3nKSOALG/Acgt3pRAMj33OqB2 4402sGooSlHLy8QQJOXqkKYwypvXNv8mPEqizd6ZHWC5aH49TTvPn4CJDJAgr85usGqI QPoYmw2B54bt7JfcMmoRb1x51FFO9lB3w1t4eZX/Re4lMuQlxNLST39WsdJWyHMBz8tT rMDgugGykyQmmIKJ7pISTsoDhMA2bktBklA4KYj2zs4Vy9GyyWm13HnJQjUaHyJH4Eh4 tm7IgkTDX9FG9XoAoDosAOOT9AjSwG3bgzE6hwyh0qNwT+EMO5n4eQ5lHVplK/igGbtf LMaw== X-Gm-Message-State: APjAAAV7c6HVuFRTQ8M/VcTAKL0DfYWvT46N5/JTMw6H2VALPIAzU3dC SLb9wHl3X2ILYqaOdUAouM/tLg== X-Received: by 2002:a62:8704:: with SMTP id i4mr21102540pfe.15.1572280223335; Mon, 28 Oct 2019 09:30:23 -0700 (PDT) Received: from Shannons-MacBook-Pro.local (static-50-53-47-17.bvtn.or.frontiernet.net. [50.53.47.17]) by smtp.gmail.com with ESMTPSA id s7sm11329948pgq.91.2019.10.28.09.30.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 09:30:22 -0700 (PDT) Subject: Re: [PATCH net-next] ionic: Remove set but not used variable 'sg_desc' To: YueHaibing , Pensando Drivers , "David S . Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20191028120121.20743-1-yuehaibing@huawei.com> From: Shannon Nelson Message-ID: Date: Mon, 28 Oct 2019 09:30:21 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191028120121.20743-1-yuehaibing@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/28/19 5:01 AM, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/pensando/ionic/ionic_txrx.c: In function 'ionic_rx_empty': > drivers/net/ethernet/pensando/ionic/ionic_txrx.c:405:28: warning: > variable 'sg_desc' set but not used [-Wunused-but-set-variable] > > It is never used, so can be removed. > > Signed-off-by: YueHaibing Acked-by: Shannon Nelson > --- > drivers/net/ethernet/pensando/ionic/ionic_txrx.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c > index 0aeac3157160..97e79949b359 100644 > --- a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c > +++ b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c > @@ -402,7 +402,6 @@ static void ionic_rx_fill_cb(void *arg) > > void ionic_rx_empty(struct ionic_queue *q) > { > - struct ionic_rxq_sg_desc *sg_desc; > struct ionic_desc_info *cur; > struct ionic_rxq_desc *desc; > unsigned int i; > @@ -412,7 +411,6 @@ void ionic_rx_empty(struct ionic_queue *q) > desc->addr = 0; > desc->len = 0; > > - sg_desc = cur->sg_desc; > for (i = 0; i < cur->npages; i++) { > if (likely(cur->pages[i].page)) { > ionic_rx_page_free(q, cur->pages[i].page, > > >