]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: package new functions to simplify hclgevf_mbx_handler code
authorPeng Li <lipeng321@huawei.com>
Fri, 27 Aug 2021 09:28:22 +0000 (17:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 10:20:21 +0000 (11:20 +0100)
commita2188261a145e6b2ab090727d9f6cf60e9f58ea4
tree428a73cd1b68ab5d8fa9cb4db26e358cc1c560a9
parent483e518fff88545e3d5a03f0d602176e13a0f7dd
net: hns3: package new functions to simplify hclgevf_mbx_handler code

This patch packages two new function to simplify the function
hclgevf_mbx_handler, and it can reduce the code cycle complexity
and make code more concise.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c