提交 bdc3f61d 编写于 作者: W Wei Jiangang 提交者: Michael Tokarev

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: NWei Jiangang <weijg.fnst@cn.fujitsu.com>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 3f3b5388
......@@ -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;
}
......
......@@ -56,6 +56,6 @@ typedef struct AccelClass {
extern int tcg_tb_size;
int configure_accelerator(MachineState *ms);
void configure_accelerator(MachineState *ms);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册