]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor hclge_query_bd_num_cmd_send()
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 28 May 2020 13:48:11 +0000 (21:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:39:03 +0000 (16:39 -0700)
commit018147d0970ae7a28cb181035142eaa23f4bddad
tree7c25bb5032b121a6320a8489121eb98017e852ae
parentd25979c7d407f1e76fa660039bbc6dd83fb36acf
net: hns3: refactor hclge_query_bd_num_cmd_send()

In order to improve code maintainability and readability, rewrite
the process of BDs' initialization in hclge_query_bd_num_cmd_send().

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