net: hns3: clean up hns3_dbg_cmd_write()
authorPeng Li <lipeng321@huawei.com>
Fri, 12 Feb 2021 03:21:03 +0000 (11:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 21:13:15 +0000 (13:13 -0800)
commitc318af3f568406a7a07194bf36c18d2053044ab4
tree2bfbf780c86457a8e002c085869374e0e9045f37
parent433e2802775c370604b74378c00977b86623fa12
net: hns3: clean up hns3_dbg_cmd_write()

As more commands are added, hns3_dbg_cmd_write() is going to
get more bloated, so move the part about command check into
a separate function.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c