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)
commitb4401a044a1e6397d21806c210dd0d9b4da93e27
treee2aa907b43203f1a04c208b5ad1dcb6f59a182bb
parenta4de02287abb9947336dfdccc83f6c0cc182e7d9
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