Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4878827ybx; Sun, 10 Nov 2019 02:42:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwZ76q57WmXSbS89IuVFcDyLVe2CdZlgsSoF6MaD8/c8/US1yYhjosGy1lhr1tZZANkIigi X-Received: by 2002:a17:906:938d:: with SMTP id l13mr5493130ejx.74.1573382551566; Sun, 10 Nov 2019 02:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573382551; cv=none; d=google.com; s=arc-20160816; b=oZjaUFGV2EwHgvmCKY3p3rLm62YK2evw67BelMzoI2zp6sLmVab45rVXNoJRnFP5se FPxo01o7pwo21gw9Zn6+y+IKuk53qgG9QNHIzAIgihluhzuqg7OL8oh0r7dBN2PpVrii e84mbPE8hmiKWVkE6ui5NngSuC3yJn58o814TpLOLUe5Mqc45DfFfWzIycKS5xxPQEa9 2jCsnJZ1VXTT8TUk916vN0Rv3Z7xyszbgn/mT1TTcsVJOdCFUV5g6QE2mJaDb6qWdOiW v3kEpDA65uxaLT239mamYPJ3oMApv6AK9NL1VWK1zSEOG2wT8Kb9EgOMlyUb215L+hMo FwHw== 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=7kFjuVlP7CXKorU8dSAngKTDlG4Y+fh89PNdtFDwEZQ=; b=hesmD+lLePD7Vr0ilhol+O0IFebyqnOR16DyAi9F9bPjmDBu/nxPYqvWYRX1DDjylq PbrGOYJXvNnh8nwQdt6N1XMAOzwI3ykuLW4NUdO9eDTcyJrELmU+Pwr/34hjYglZ6NWL /ODaV13oQsuKUdWvsWgacWteU/9NHZLGCOBkqFY6Bq+S3stnzzEq3Wl/b4dchAowe4L2 tNSgiakAue0UguWP9p/SxEuHd8xUwgVdPspuSaRflTuQzv/0i6I0NsoZ1s9+KhFuMSdu 7oq2JHfgBFnqW/REBjyXRqXGcxOELND8QZ61p9oqAAf3XDTaeNWTeiitQqV5YQk4Kw7Z 8VDQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si7489847ejc.277.2019.11.10.02.42.05; Sun, 10 Nov 2019 02:42:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfKJKk5 (ORCPT + 99 others); Sun, 10 Nov 2019 05:40:57 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5757 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726609AbfKJKk5 (ORCPT ); Sun, 10 Nov 2019 05:40:57 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9DE7C53EF28443017FD9; Sun, 10 Nov 2019 18:40:55 +0800 (CST) Received: from localhost.localdomain (10.175.104.82) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Sun, 10 Nov 2019 18:40:45 +0800 From: Zheng Yongjun To: , , , CC: , , Hulk Robot Subject: [PATCH] net: ll_temac: Remove set but not used variable 'start_p' Date: Sun, 10 Nov 2019 18:39:37 +0800 Message-ID: <20191110103937.124600-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.82] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/xilinx/ll_temac_main.c: In function temac_start_xmit: drivers/net/ethernet/xilinx/ll_temac_main.c:737:13: warning: variable start_p set but not used [-Wunused-but-set-variable] start_p is never used, so remove it. Reported-by: Hulk Robot Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/xilinx/ll_temac_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index 21c1b4322ea7..b37433be6b7f 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c @@ -819,14 +819,13 @@ temac_start_xmit(struct sk_buff *skb, struct net_device *ndev) { struct temac_local *lp = netdev_priv(ndev); struct cdmac_bd *cur_p; - dma_addr_t start_p, tail_p, skb_dma_addr; + dma_addr_t tail_p, skb_dma_addr; int ii; unsigned long num_frag; skb_frag_t *frag; num_frag = skb_shinfo(skb)->nr_frags; frag = &skb_shinfo(skb)->frags[0]; - start_p = lp->tx_bd_p + sizeof(*lp->tx_bd_v) * lp->tx_bd_tail; cur_p = &lp->tx_bd_v[lp->tx_bd_tail]; if (temac_check_tx_bd_space(lp, num_frag + 1)) { -- 2.23.0