Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp401951ybm; Thu, 28 May 2020 05:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLU4G0WMDl+yvLkFsXJW/BoJGPzawECne98+X04XCli+bavgB71dKnB/a7sTVEy3j9teex X-Received: by 2002:a17:906:b5c1:: with SMTP id ep1mr2677048ejb.528.1590670399019; Thu, 28 May 2020 05:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590670399; cv=none; d=google.com; s=arc-20160816; b=j2Zr+LajLu1pmaRj9khFlY7Atq6KHFAJl5khLqh96C9WLodLYi10mwcXtcw4szbDU4 gMa3vqIwIISp0gviaOA/9R0VZlNWUWgil3LnqKpieSI9sazjHfTqAESH6fAnnSOJFYu1 Ebt8gF/PDWsKVgiu5zs5FP9Y0kawmt34ZNAyH6zD2tAg3F6ChHIkx4mjK0E+SoXpupjd nIEY5WJarTmvEfNGDVaMUxtXR+ue8lTQb4trzzJWytEeA9XX3PmlwlGVpV8dE24p+vE6 IJwtlIBtC6EXT6/OIJ/3k9nLpnup8MBW3VjHoQ0NP8+GaPG7RIG4H8rBFdc3G0y5NoNo m/Tg== 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=vyUw3jC91FQG28kst7Jv7Oq3hISc71OrrH3v2VbaikM=; b=C82yYQD23aAXGIbJHqxp1DAoIYLjT7O5QqHscG91BdxdDEaTLTv2CSlnWLWw1MCDgf A+vEl4QiMXLQ2zXZAMNhBZD9vZhvpxZoLBpHTqCc1gzjU3VCk1az9oEVBzJSTd1nuZZJ CCuXpvvovvPupyrfQj+sa6gwauNBEIBqjbOk2Cji/poplAIyzBXiWHE66HVXvmbh1L5N xzeZqerbw+cefbxfmpBb7kRba9tcMHZmwjxVrb6RSgC97W5WEYtojIaEcnG/nH9dZzlg SO3pM1fEqhJ9/kZWee1o+e7vtc4TZbaWBEFYTuz0f4lhQD3bn/JgNl1bfsNpO+ViIzZu 1CLg== 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 l10si3477641edv.152.2020.05.28.05.52.56; Thu, 28 May 2020 05:53:19 -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 S2390020AbgE1Msh (ORCPT + 99 others); Thu, 28 May 2020 08:48:37 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5368 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389969AbgE1MsX (ORCPT ); Thu, 28 May 2020 08:48:23 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 42C145B864B9E6210307; Thu, 28 May 2020 20:46:48 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 20:46:38 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 08/11] net: hns3: remove unused struct hnae3_unic_private_info Date: Thu, 28 May 2020 20:45:09 +0800 Message-ID: <1590669912-21867-9-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590669912-21867-1-git-send-email-tanhuazhong@huawei.com> References: <1590669912-21867-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 Since field .uinfo in struct hnae3_handle never be used, so remove it and its structure definition. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 0a4aac4..d041cac 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -621,16 +621,6 @@ struct hnae3_roce_private_info { unsigned long state; }; -struct hnae3_unic_private_info { - struct net_device *netdev; - u16 rx_buf_len; - u16 num_tx_desc; - u16 num_rx_desc; - - u16 num_tqps; /* total number of tqps in this handle */ - struct hnae3_queue **tqp; /* array base of all TQPs of this instance */ -}; - #define HNAE3_SUPPORT_APP_LOOPBACK BIT(0) #define HNAE3_SUPPORT_PHY_LOOPBACK BIT(1) #define HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK BIT(2) @@ -656,7 +646,6 @@ struct hnae3_handle { union { struct net_device *netdev; /* first member */ struct hnae3_knic_private_info kinfo; - struct hnae3_unic_private_info uinfo; struct hnae3_roce_private_info rinfo; }; -- 2.7.4