net: hns3: reconstruct function hns3_self_test
authorPeng Li <lipeng321@huawei.com>
Mon, 30 Aug 2021 06:06:37 +0000 (14:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 13:55:58 +0000 (15:55 +0200)
commit85e4f5d28d25c40965004c225133457f3bcb0ac9
treeebdd24e46fd88250428dfdb414bd90d406ee3a29
parent8e89876c84b23d79a7ea58c3f5c300695a227570
net: hns3: reconstruct function hns3_self_test

[ Upstream commit 4c8dab1c709c5a715bce14efdb8f4e889d86aa04 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c