Commit 6240292e authored by Nicolas Denoyelle's avatar Nicolas Denoyelle

checkpatch

parent ebcea518
Pipeline #7374 passed with stages
in 6 minutes and 15 seconds
......@@ -265,9 +265,9 @@ int aml_replicaset_sync(struct aml_replicaset *replicaset,
* @param replicaset[in]: The replicaset holding data copies.
* @param i[in]: The index of replica to retrieve.
* @return A pointer to the replica.
* @return NULL on error with aml_errno set to the specific error.
* @return NULL on error with aml_errno set to the specific error.
**/
void* aml_replicaset_get(struct aml_replicaset *replicaset,
void *aml_replicaset_get(struct aml_replicaset *replicaset,
const unsigned int i);
////////////////////////////////////////////////////////////////////////////////
......
......@@ -133,7 +133,7 @@ void *aml_area_hwloc_mmap(const struct aml_area_data *data,
return aml_area_hwloc_mmap_mbind(data, ptr, size);
nodeset = hwloc_data->nodeset;
if(nodeset == NULL)
if (nodeset == NULL)
nodeset = hwloc_topology_get_allowed_nodeset(aml_topology);
void *p = hwloc_alloc_membind(aml_topology,
......
......@@ -418,10 +418,13 @@ int aml_replicaset_hwloc_get_index(struct aml_replicaset *replicaset)
}
#ifdef DEBUG
hwloc_obj_t target = d->target[initiator->logical_index];
fprintf(stderr,
fprintf(stderr,
"aml_replicaset_hwloc: access from %s:%d to replica on %s:%d\n",
hwloc_obj_type_string(initiator->type), initiator->logical_index,
hwloc_obj_type_string(target->type), target->logical_index);
hwloc_obj_type_string(initiator->type),
initiator->logical_index,
hwloc_obj_type_string(target->type),
target->logical_index);
#endif
err = initiator->logical_index;
......
......@@ -128,12 +128,12 @@ int aml_replicaset_sync(struct aml_replicaset *replicaset,
replicaset->replica[id], replicaset->size);
}
void* aml_replicaset_get(struct aml_replicaset *replicaset,
void *aml_replicaset_get(struct aml_replicaset *replicaset,
const unsigned int i)
{
if (replicaset == NULL ||
replicaset->n <= i){
aml_errno = AML_EINVAL;
aml_errno = AML_EINVAL;
return NULL;
}
return replicaset->replica[i];
......
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