diff --git a/control/control.c b/control/control.c index 61068fdb55c8db6ceadc3d6385b3d95aabcc1e94..5fc134b38e3a54270b68677fc3f0db9ffbde0e4b 100644 --- a/control/control.c +++ b/control/control.c @@ -82,7 +82,6 @@ int __chameleon_init(int cores, int gpus) int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker) { CHAM_context_t *chamctxt; - int res = -1; /* Create context and insert in the context map */ chamctxt = chameleon_context_create(); @@ -114,9 +113,7 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker) } #endif - res = RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker ); - - return res == 0 ? CHAMELEON_SUCCESS : res; + return RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker ); } /**