]> 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)
commit1cdd76cb2608103b60126880a8caa46574e62009
treee2aa907b43203f1a04c208b5ad1dcb6f59a182bb
parentdbacac429d71e1704056c5e622104a781d6c3e00
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