summaryrefslogtreecommitdiffstats
path: root/accel.c
diff options
context:
space:
mode:
authorWei Jiangang2016-04-14 05:58:02 +0200
committerMichael Tokarev2016-05-18 14:04:27 +0200
commitbdc3f61dec2f9c227235bb5f677a0272e1184c82 (patch)
tree0a4af7b223cf52390eeed6471e9917f32aab5f79 /accel.c
parentconfigure: Use uniform description for devel packages (diff)
downloadqemu-bdc3f61dec2f9c227235bb5f677a0272e1184c82.tar.gz
qemu-bdc3f61dec2f9c227235bb5f677a0272e1184c82.tar.xz
qemu-bdc3f61dec2f9c227235bb5f677a0272e1184c82.zip
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 <weijg.fnst@cn.fujitsu.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'accel.c')
-rw-r--r--accel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/accel.c b/accel.c
index 0510b90f67..403eb5e94d 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;
}