diff options
| author | Peng Li <[email protected]> | 2021-02-12 03:21:01 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-02-12 21:13:15 +0000 |
| commit | 1c9a98b0ba1f16490ea0d492a1cd606f3a4b1bee (patch) | |
| tree | db885287540f8e2eeff32dff62a7d760b4d48c2d /net/switchdev/switchdev.c | |
| parent | Merge branch 'sock-rx-qmap' (diff) | |
| download | kernel-1c9a98b0ba1f16490ea0d492a1cd606f3a4b1bee.tar.gz kernel-1c9a98b0ba1f16490ea0d492a1cd606f3a4b1bee.zip | |
net: hns3: refactor out hclge_cmd_convert_err_code()
To improve code readability and maintainability, refactor
hclge_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
