]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: reconstruct function hclge_ets_validate()
authorGuangbin Huang <huangguangbin2@huawei.com>
Mon, 30 Aug 2021 06:06:38 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:43:18 +0000 (09:43 +0100)
commit83609ea6cce5b720258cc5cdede6879642458a3a
tree8dba59ce041e67d93bcd24edf79d6f9b6a55cd92
parentf0b38c87621d3e474d3bbd2dc3ac0573739147eb
net: hns3: reconstruct function hclge_ets_validate()

This patch reconstructs function hclge_ets_validate() to reduce the code
cycle complexity and make code more concise.

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