[openEuler-21.09 022/141] net: hns3: refactor out hclge_cmd_convert_err_code()