Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp445161ybm; Thu, 28 May 2020 06:54:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtS0+SOGhz2kdAmh8GhWTYxM+w37oIbyp/YwI4A+AmJPI6jAR0HGbLisgK133/zr9ZfjmI X-Received: by 2002:aa7:dd16:: with SMTP id i22mr3429078edv.366.1590674066294; Thu, 28 May 2020 06:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590674066; cv=none; d=google.com; s=arc-20160816; b=dJEP048TMHCFqL5atKRQoE4TxNueXfW8grdLI8F/D3A+HBJY8wI7JYpgiNwPIKQ+Jp Ho/Dl51olTx+Manqc22KbGIzNfLUONUxx88Opk0VNOjYpA2bSOavUCbmDJMLE9k5rFYR X/NWoZVE3bplxRYND6cHlGoy2mRPtPN1soa9xHumx8O7nkpBZcoBl9ryh0YjiXwHRl7A n9n4Z4mLpgWZ+mmD4zG6CE37hC4IvNMJQ9hgtJjyKg4g/M77XbG6ER9ymj3gegKzQ8Y/ DUklxOtz7PZHAdcI9KIbIx5wAG71y8oJuX4KeaPtaxVRJTIz60RBNaUb8dQssNubLNq8 CtlA== 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=0f7UodAriECRgQs/BXIYIX78ehT1aiFXWuZd2OBA/2jLhtLzmLB7XwsTI+zopPcDkM vsEzNEndKPxcSf8zFiQg13epdxDmYAx648g+OdrGQqHhRRkSsD9fcZiWT+KDvIvv8tpK 0zUvA9VDspmu+OugxRHS2hWp4DYxCjJAHiR31nKK3Bsy/Uis0h3tyGwGx78wsUxoqvRD DjkfTBxthcku4AeS+LuXboh8MPcEYnnkQyh8Uq8lYyJix2O/5CyvB74/Y1R3LdXsi0I7 cAipWc9wtDbF/SekEjles9WJfdmnr0Gr3U1fFMqYvepH8xrS4AtWaBrpENMqIBjJxGAx oXuA== 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 k2si3478345edh.454.2020.05.28.06.54.03; Thu, 28 May 2020 06:54:26 -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 S2390711AbgE1Nvq (ORCPT + 99 others); Thu, 28 May 2020 09:51:46 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5378 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390619AbgE1Nva (ORCPT ); Thu, 28 May 2020 09:51:30 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4916A7392B123558E5E5; Thu, 28 May 2020 21:50:59 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 21:50:51 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 09/12] net: hns3: remove unused struct hnae3_unic_private_info Date: Thu, 28 May 2020 21:48:16 +0800 Message-ID: <1590673699-63819-10-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590673699-63819-1-git-send-email-tanhuazhong@huawei.com> References: <1590673699-63819-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