Return the negated value of accel_initialised is meaningless, and the caller vl doesn't check it.
Signed-off-by: Wei Jiangang <weijg.f...@cn.fujitsu.com> --- accel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/accel.c b/accel.c index 0510b90..403eb5e 100644 --- a/accel.c +++ b/accel.c @@ -77,7 +77,7 @@ static int accel_init_machine(AccelClass *acc, MachineState *ms) return ret; } -int configure_accelerator(MachineState *ms) +void configure_accelerator(MachineState *ms) { const char *p; char buf[10]; @@ -128,8 +128,6 @@ int configure_accelerator(MachineState *ms) if (init_failed) { fprintf(stderr, "Back to %s accelerator.\n", acc->name); } - - return !accel_initialised; } -- 1.9.3