diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c
index 32bf13b870f7461ea424352659c458742a2d4412..7d145bb6ca9357e229c11336f6df92fb48b1877b 100644
--- a/runtime/starpu/control/runtime_control.c
+++ b/runtime/starpu/control/runtime_control.c
@@ -132,7 +132,7 @@ void RUNTIME_finalize_scheduler( MORSE_context_t *morse )
 
     /* StarPU was already initialized by an external library */
     if (morse->schedopt == NULL) {
-        return 0;
+        return;
     }
 
 #if defined(CHAMELEON_USE_MPI)