diff options
author | 2021-02-12 11:21:02 +0800 | |
---|---|---|
committer | 2021-02-12 13:13:15 -0800 | |
commit | 433e2802775c370604b74378c00977b86623fa12 (patch) | |
tree | 9883b67fb29f4fe79f8955de320c66b6fcebe10e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: hns3: refactor out hclge_cmd_convert_err_code() (diff) | |
download | wireguard-linux-433e2802775c370604b74378c00977b86623fa12.tar.xz wireguard-linux-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 <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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions