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>
Thu, 7 Oct 2021 05:53:15 +0000 (07:53 +0200)
commitfd519ae5a81630e9dd34fd9266721a6f268a6122
tree4a05a7fbaf695140c1a8072d0b58327d6c38794a
parent851c0b9913b8655a9c8c183f8f9f0261f0fea663
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