]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7347c90047d9dd906f0122bc5c2ed70aa6454292
tree2bfbf780c86457a8e002c085869374e0e9045f37
parentd6692f4d198bd0ac1e351eaceca1ac976dc09099
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