net: hns3: reconstruct function hns3_self_test
authorPeng Li <lipeng321@huawei.com>
Mon, 30 Aug 2021 06:06:37 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:43:18 +0000 (09:43 +0100)
commit4c8dab1c709c5a715bce14efdb8f4e889d86aa04
tree9fb7a439b49486ae9c609ca752b06b070e0cc74b
parent60fe9ff9b7cbbf78a755cd849a3575d3b04b7394
net: hns3: reconstruct function hns3_self_test

This patch reconstructs function hns3_self_test to reduce the code
cycle complexity and make code more concise.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c