Skip to content

Commit

Permalink
net: hns3: remove unused struct hnae3_unic_private_info
Browse files Browse the repository at this point in the history
Since field .uinfo in struct hnae3_handle never be used,
so remove it and its structure definition.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Huazhong Tan authored and David S. Miller committed May 28, 2020
1 parent c496299 commit 4828b57
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/net/ethernet/hisilicon/hns3/hnae3.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
};

Expand Down

0 comments on commit 4828b57

Please sign in to comment.