Commit b67af364 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] missing return assignment

parent 9d1c9f97
...@@ -48,6 +48,7 @@ static int aml_tiling_resize_alloc(struct aml_tiling **ret, size_t ndims) ...@@ -48,6 +48,7 @@ static int aml_tiling_resize_alloc(struct aml_tiling **ret, size_t ndims)
size_t, 2*ndims); size_t, 2*ndims);
data->layout = NULL; data->layout = NULL;
data->ndims = ndims; data->ndims = ndims;
*ret = tiling;
return 0; return 0;
} }
...@@ -87,6 +88,7 @@ int aml_tiling_resize_create(struct aml_tiling **tiling, ...@@ -87,6 +88,7 @@ int aml_tiling_resize_create(struct aml_tiling **tiling,
*tiling = NULL; *tiling = NULL;
return -AML_EINVAL; return -AML_EINVAL;
} }
*tiling = t;
data->tags = tags; data->tags = tags;
size_t target_dims[ndims]; size_t target_dims[ndims];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment