]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
net: hns: remove unused NIC_LB_TEST_RX_PKG_ERR
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 23 Mar 2021 07:41:06 +0000 (15:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2021 19:07:21 +0000 (12:07 -0700)
NIC_LB_TEST_RX_PKG_ERR is not used and can be removed.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c

index 1af664779d337e484a5ebab646510bd8398ca58f..177ce067fcec2061c3392e054ac0b8442de44263 100644 (file)
@@ -480,7 +480,7 @@ static int __lb_run_test(struct net_device *ndev,
 #define NIC_LB_TEST_NO_MEM_ERR 1
 #define NIC_LB_TEST_TX_CNT_ERR 2
 #define NIC_LB_TEST_RX_CNT_ERR 3
-#define NIC_LB_TEST_RX_PKG_ERR 4
+
        struct hns_nic_priv *priv = netdev_priv(ndev);
        struct hnae_handle *h = priv->ae_handle;
        int i, j, lc, good_cnt, ret_val = 0;