aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPeng Li <[email protected]>2021-02-12 03:21:02 +0000
committerDavid S. Miller <[email protected]>2021-02-12 21:13:15 +0000
commit433e2802775c370604b74378c00977b86623fa12 (patch)
tree9883b67fb29f4fe79f8955de320c66b6fcebe10e /net/switchdev/switchdev.c
parentnet: hns3: refactor out hclge_cmd_convert_err_code() (diff)
downloadkernel-433e2802775c370604b74378c00977b86623fa12.tar.gz
kernel-433e2802775c370604b74378c00977b86623fa12.zip
net: hns3: refactor out hclgevf_cmd_convert_err_code()
To improve code readability and maintainability, refactor hclgevf_cmd_convert_err_code() with an array of imp_errcode and common_errno mapping, instead of a bloated switch/case. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions