]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: optimized the judgment of the input parameters of dump ncl config
authorYufeng Mo <moyufeng@huawei.com>
Sat, 9 May 2020 09:27:40 +0000 (17:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 May 2020 02:43:22 +0000 (19:43 -0700)
commitd1e7cb324fc88a92ee70a4e2d6cd5f1ca7019cd0
treee2aa907b43203f1a04c208b5ad1dcb6f59a182bb
parent23574676133f551a7610e53ef7e5721c1830ff4c
net: hns3: optimized the judgment of the input parameters of dump ncl config

This patch optimizes the judgment of the input parameters of dump ncl
config by checking the number and value of the input parameters apart.
It's clearer and more reasonable.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c