Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3617368pxk; Mon, 7 Sep 2020 20:03:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLVzR4bVLGzFFPS/Ep+REo+rWa603kWf04poedhqA9GOGBdkX0KMDHnpY6s+p9Dz6o5o80 X-Received: by 2002:aa7:df14:: with SMTP id c20mr25099401edy.334.1599534214802; Mon, 07 Sep 2020 20:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599534214; cv=none; d=google.com; s=arc-20160816; b=Uk96lKaAPGg6oxU4uI6+DZOO4TSM6Xx0PUeqipNIKAzLUx/9ia3mybYFQ4TtfhRpCL REy2AYoZv90Lhcen/KHhmh25E2WgbQWLWU+yd9S+sTuOVIbwfvINz30x0z+xwMc9Pfxb bYex5dTkXaxMkxO+thURdE4ilPvhjDtr1pgr/2u9F+cM9IXvgnA9dcVtj7x3tUBovpEV MNSjeeHthQvbz1UfOELIQWq+X9Y9flw4rsPDohhDaLjRcUtyoUzMyF7mcuhhhAych1Ca akZ0SxFA5zLiBXUdwqFdKaPYZGeJ0SZ8SqBP0EaXLiKuDy+aXQseKrWlB4VHqREpqwzD 6U9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=vcwklixZUIp91+QpdyiKuF7/92fXB5vF9XLpIOH5pGc=; b=IF/imkwOQzwrsG2m4rW09/XjLRVgZ4ZE9msl1dn3vpf6IjPGkhWyBralOtR+0ezOew 6Gn5A2s857SjDCeGPb2rEFhJZUzm9Ag5UhlwDpGrOM7wAqiM90rvMmqNeQUl8X1aFMit 3VT92oH5qrrFFLpCkmJfvf2YUtskQscCEBl7OlMwVgVBdR1a2UpHcIXftBc/TZJUFZh6 OHa0eQ/Gc92VSGH3BNJywTREI4QFCt5PLnUekw0KHWJsbllTj+PXwjSVeyfyBWHIuQ+4 r6BWxzWz5vRsdcFHFCbmqIcZvmMfLk6wTMlgad90Y9xz872QShydNdXbdjvqYk/eDuLi zPHg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 88si10245114edq.178.2020.09.07.20.03.12; Mon, 07 Sep 2020 20:03:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728529AbgIHDCh (ORCPT + 99 others); Mon, 7 Sep 2020 23:02:37 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11255 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728327AbgIHDCa (ORCPT ); Mon, 7 Sep 2020 23:02:30 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id AE48EE57535693C496F3; Tue, 8 Sep 2020 11:02:27 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Tue, 8 Sep 2020 11:02:19 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 4/7] net: hns3: remove unused field 'io_base' in struct hns3_enet_ring Date: Tue, 8 Sep 2020 10:59:51 +0800 Message-ID: <1599533994-32744-5-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599533994-32744-1-git-send-email-tanhuazhong@huawei.com> References: <1599533994-32744-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'io_base' has been defined and initialized, but never used, so remove it. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 -- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 47ab2a5..1d66f84 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -3670,12 +3670,10 @@ static void hns3_ring_get_cfg(struct hnae3_queue *q, struct hns3_nic_priv *priv, ring = &priv->ring[q->tqp_index]; desc_num = priv->ae_handle->kinfo.num_tx_desc; ring->queue_index = q->tqp_index; - ring->io_base = (u8 __iomem *)q->io_base + HNS3_TX_REG_OFFSET; } else { ring = &priv->ring[q->tqp_index + queue_num]; desc_num = priv->ae_handle->kinfo.num_rx_desc; ring->queue_index = q->tqp_index; - ring->io_base = q->io_base; } hnae3_set_bit(ring->flag, HNAE3_RING_TYPE_B, ring_type); diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 9922c5f..0c146e7 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -380,7 +380,6 @@ struct ring_stats { }; struct hns3_enet_ring { - u8 __iomem *io_base; /* base io address for the ring */ struct hns3_desc *desc; /* dma map address space */ struct hns3_desc_cb *desc_cb; struct hns3_enet_ring *next; -- 2.7.4