Commit bf9a3c14 authored by Swann Perarnau's avatar Swann Perarnau

[style] checkpatch.

parent a284482e
Pipeline #8029 failed with stages
in 6 minutes and 24 seconds
......@@ -194,9 +194,9 @@ int aml_area_linux_create(struct aml_area **area, const int mmap_flags,
}
ret = calloc(1, sizeof(struct aml_area));
if (ret == NULL) {
if (ret == NULL)
return -AML_ENOMEM;
}
ret->ops = &aml_area_linux_ops;
ret->data = calloc(1, sizeof(struct aml_area_linux_data));
if (ret->data == NULL) {
......
......@@ -208,9 +208,9 @@ int aml_dma_linux_par_create(struct aml_dma **dma, size_t nbreqs,
/* alloc */
ret = calloc(1, sizeof(struct aml_dma));
if (ret == NULL) {
if (ret == NULL)
return -AML_ENOMEM;
}
ret->ops = &aml_dma_linux_par_ops;
ret->data = calloc(1, sizeof(struct aml_dma_linux_par));
if (ret->data == NULL) {
......
......@@ -166,9 +166,8 @@ int aml_dma_linux_seq_create(struct aml_dma **dma, size_t nbreqs)
/* alloc */
ret = calloc(1, sizeof(struct aml_dma));
if (ret == NULL) {
if (ret == NULL)
return -AML_ENOMEM;
}
ret->data = calloc(1, sizeof(struct aml_dma_linux_seq));
if (ret->data == NULL) {
......@@ -197,7 +196,7 @@ void aml_dma_linux_seq_destroy(struct aml_dma **dma)
if (dma == NULL)
return;
d = *dma;
if(d == NULL || d->data == NULL)
if (d == NULL || d->data == NULL)
return;
l = (struct aml_dma_linux_seq *)d->data;
aml_vector_destroy(&l->data.requests);
......
......@@ -255,9 +255,9 @@ int aml_scratch_par_create(struct aml_scratch **scratch,
/* alloc */
ret = calloc(1, sizeof(struct aml_scratch));
if (ret == NULL) {
if (ret == NULL)
return -AML_ENOMEM;
}
ret->ops = &aml_scratch_par_ops;
ret->data = calloc(1, sizeof(struct aml_scratch_par));
if (ret->data == NULL) {
......
......@@ -255,9 +255,9 @@ int aml_scratch_seq_create(struct aml_scratch **scratch,
/* alloc */
ret = calloc(1, sizeof(struct aml_scratch));
if (ret == NULL) {
if (ret == NULL)
return -AML_ENOMEM;
}
ret->ops = &aml_scratch_seq_ops;
ret->data = calloc(1, sizeof(struct aml_scratch_seq));
if (ret->data == NULL) {
......
......@@ -189,9 +189,9 @@ int aml_tiling_1d_create(struct aml_tiling **tiling,
/* alloc */
ret = calloc(1, sizeof(struct aml_tiling));
if (ret == NULL) {
if (ret == NULL)
return -AML_ENOMEM;
}
ret->ops = &aml_tiling_1d_ops;
ret->data = calloc(1, sizeof(struct aml_tiling_1d_data));
if (ret->data == NULL) {
......
......@@ -130,7 +130,7 @@ int aml_tiling_2d_create_iterator(struct aml_tiling_data *tiling,
struct aml_tiling_iterator *ret;
struct aml_tiling_iterator_2d_data *data;
if(it == NULL)
if (it == NULL)
return -AML_EINVAL;
*it = NULL;
......@@ -213,9 +213,8 @@ int aml_tiling_2d_create(struct aml_tiling **tiling, int type,
/* alloc */
ret = calloc(1, sizeof(struct aml_tiling));
if (ret == NULL) {
if (ret == NULL)
return -AML_ENOMEM;
}
if (type == AML_TILING_TYPE_2D_ROWMAJOR)
ret->ops = &aml_tiling_2d_rowmajor_ops;
......
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