Skip to contentSkip to conversation

accel: make configure_accelerator return void

PATCH Applied Wei Jiangang 2 participants 2 messages Apr 14, 2016 – May 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 accel: make configure_accelerator return void

Return the negated value of accel_initialised is meaningless, and the caller vl doesn't check it.

---
 accel.c                | 4 +---
 include/sysemu/accel.h | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
accel.c +1 -3
index 0510b90..403eb5e 100644
@@ -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;
 }
 
 
include/sysemu/accel.h +1 -1
index 997720f..c230f1b 100644
@@ -57,6 +57,6 @@ typedef struct AccelClass {
 
 extern int tcg_tb_size;
 
-int configure_accelerator(MachineState *ms);
+void configure_accelerator(MachineState *ms);
 
 #endif
Signature · 1 line
1.9.3
#1 lore raw
Quoted 2 lines · Wei Jiangang

Return the negated value of accel_initialised is meaningless, and the caller vl doesn't check it.

Applied to -trivial, thanks!

/mjt