Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3450076ybg; Mon, 28 Oct 2019 13:02:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzImnngnD9OYABsDKUMrO/SgX7/dfueb2LZRXTeKc9c8BcFCJRLcostF7pLl1bC3biQgtZS X-Received: by 2002:a05:6402:12d5:: with SMTP id k21mr22016142edx.56.1572292965827; Mon, 28 Oct 2019 13:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572292965; cv=none; d=google.com; s=arc-20160816; b=wln6UlQfPcreFHZwIj907XcgNhf9zbd25DalQjRPQdHQSwWPe7k/MLG3WVCcs1RLRs HJkxIg8MfL/PzPn163kUJ1vMBQfAO0UimNi68TG8Ng79JGdRg+ZTJu70WX9UJ2hfr64c jsMQ+oZNo4twAqbcHwSPtg87SSlpPIcwmoxE5B8vjaT0O83FK9BUsnXTG9O3f7QO+FlE 6DbbXqHqyZA/KInTBsDGul+RdBtkDPdU1M94zHuMRWnOQv0PgM8vxEymODb6YtuH0I7m OLzCyPeGLuWFuUe5PcmHXBDjDdRwkRNdid8WHMwHxBAyr6OEqSVb2+pAth34INgjXnYR HqLQ== 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=KycShp2A0rJwp+BnaEw1NMAX95wqKavRB58NaLvVovE=; b=SOCdMGIsdy60o3VKp2tLwle58mOFm097PHJPHe8NQAjv8W8kNbtN+x1RmtQaeb3WAj 16W+NH9nNa+DKhJCnHxethRKCOfdp99QG5DY8PxpORHY0gfnr4yBENogPL02Hw0HprSL WuMP9z9uvECT+t+Aj+HUKLRMTwyGXM5gyyhbNbqwjBPskiRjx4VHOGyq0jDfXmENsRSv qPfLxT/lVw+fCv9FnRP00WqcrS1yKqmwj1KddsXQ9gxg2oVKG8wHHU35USf8A0tyuys8 Bh3THVO4XXHjOXo7wrpR3klQHOtv4rNbDnTotOMS81DaTTvETvLCAp7chR2gm5fePZ2P nVHw== 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 e22si8082812ede.163.2019.10.28.13.02.20; Mon, 28 Oct 2019 13:02: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; 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 S2388771AbfJ1MBt (ORCPT + 99 others); Mon, 28 Oct 2019 08:01:49 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5210 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726466AbfJ1MBs (ORCPT ); Mon, 28 Oct 2019 08:01:48 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4D7F0CFBA305898AA362; Mon, 28 Oct 2019 20:01:46 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Mon, 28 Oct 2019 20:01:37 +0800 From: YueHaibing To: Shannon Nelson , Pensando Drivers , "David S . Miller" CC: YueHaibing , , , Subject: [PATCH net-next] ionic: Remove set but not used variable 'sg_desc' Date: Mon, 28 Oct 2019 12:01:21 +0000 Message-ID: <20191028120121.20743-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] 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/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 --- 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,