diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c index 71d3fb68e8ce499e7f33491d76406cc28fd7b192..a75879ec634f5992d455722ec28d1eb6bea7c9d4 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -509,11 +509,9 @@ static void hns3_get_stats(struct net_device *netdev, struct ethtool_stats *stats, u64 *data) { struct hnae3_handle *h = hns3_get_handle(netdev); - struct hns3_nic_priv *priv = h->priv; u64 *p = data; - if (!test_bit(HNS3_NIC_STATE_INITED, &priv->state) || - hns3_nic_resetting(netdev)) { + if (hns3_nic_resetting(netdev)) { netdev_err(netdev, "dev resetting, could not get stats\n"); return; }