diff options
| author | Peng Li <lipeng321@huawei.com> | 2021-02-12 11:21:01 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-02-12 13:13:15 -0800 |
| commit | 1c9a98b0ba1f16490ea0d492a1cd606f3a4b1bee (patch) | |
| tree | db885287540f8e2eeff32dff62a7d760b4d48c2d /tools/perf/scripts/python/bin/flamegraph-report | |
| parent | Merge branch 'sock-rx-qmap' (diff) | |
| download | linux-1c9a98b0ba1f16490ea0d492a1cd606f3a4b1bee.tar.gz linux-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 <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-report')
0 files changed, 0 insertions, 0 deletions
