From: Wei Jiangang Date: Thu, 14 Apr 2016 03:58:02 +0000 (+0800) Subject: accel: make configure_accelerator return void X-Git-Tag: v2.7.0-rc0~181^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdc3f61dec2f9c227235bb5f677a0272e1184c82;p=thirdparty%2Fqemu.git accel: make configure_accelerator return void Return the negated value of accel_initialised is meaningless, and the caller vl doesn't check it. Signed-off-by: Wei Jiangang Signed-off-by: Michael Tokarev --- diff --git a/accel.c b/accel.c index 0510b90f679..403eb5e94d5 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; } diff --git a/include/sysemu/accel.h b/include/sysemu/accel.h index a74b2faf5f5..15944c152c1 100644 --- a/include/sysemu/accel.h +++ b/include/sysemu/accel.h @@ -56,6 +56,6 @@ typedef struct AccelClass { extern int tcg_tb_size; -int configure_accelerator(MachineState *ms); +void configure_accelerator(MachineState *ms); #endif