Skip to content
Commit 5789bfcb authored by Hao Lan's avatar Hao Lan Committed by Greg Kroah-Hartman
Browse files

net: hns3: refactor function hclge_mbx_handler()



[ Upstream commit 09431ed8 ]

Currently, the function hclge_mbx_handler() has too many switch-case
statements, it makes this function too long. To improve code readability,
refactor this function and use lookup table instead.

Signed-off-by: default avatarHao Lan <lanhao@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: 669554c5 ("net: hns3: direct return when receive a unknown mailbox message")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 52acec01
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment