summaryrefslogtreecommitdiff
path: root/drivers/firewire
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-02-12 06:21:01 +0300
committerDavid S. Miller <davem@davemloft.net>2021-02-13 00:13:15 +0300
commit1c9a98b0ba1f16490ea0d492a1cd606f3a4b1bee (patch)
treedb885287540f8e2eeff32dff62a7d760b4d48c2d /drivers/firewire
parent4fb37e72e2f1cd67ba9243c04b5b94969dc15523 (diff)
downloadlinux-1c9a98b0ba1f16490ea0d492a1cd606f3a4b1bee.tar.xz
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 'drivers/firewire')
0 files changed, 0 insertions, 0 deletions