accel: make configure_accelerator return void
authorWei Jiangang <weijg.fnst@cn.fujitsu.com>
Thu, 14 Apr 2016 03:58:02 +0000 (11:58 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 18 May 2016 12:04:27 +0000 (15:04 +0300)
Return the negated value of accel_initialised is meaningless,
and the caller vl doesn't check it.

Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
accel.c
include/sysemu/accel.h

diff --git a/accel.c b/accel.c
index 0510b90f679da6fb84ae28ddde33396a5a770552..403eb5e94d585cf606d99cf9e5155d585633aa9e 100644 (file)
--- 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;
 }
 
 
index a74b2faf5f588db19127c9ebadb647f9f98f888d..15944c152c15d4eabbe600ded3280aeb49777324 100644 (file)
@@ -56,6 +56,6 @@ typedef struct AccelClass {
 
 extern int tcg_tb_size;
 
-int configure_accelerator(MachineState *ms);
+void configure_accelerator(MachineState *ms);
 
 #endif