]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb51c95fd1cb997cedcacc40cb7ee3c469ab844c
tree9fb7a439b49486ae9c609ca752b06b070e0cc74b
parent13f7200ef21ff5ce23547f381364cb8728129303
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