mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
accel: Remove unused AccelClass::available field
The field is not used anymore, we can remove it. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190422210448.2488-4-ehabkost@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> [on mingw64] Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
a08052bc24
commit
8d006d4bc2
2 changed files with 0 additions and 6 deletions
|
@ -107,11 +107,6 @@ void configure_accelerator(MachineState *ms, const char *progname)
|
||||||
if (!acc) {
|
if (!acc) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (acc->available && !acc->available()) {
|
|
||||||
printf("%s not supported for this target\n",
|
|
||||||
acc->name);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
ret = accel_init_machine(acc, ms);
|
ret = accel_init_machine(acc, ms);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
init_failed = true;
|
init_failed = true;
|
||||||
|
|
|
@ -38,7 +38,6 @@ typedef struct AccelClass {
|
||||||
|
|
||||||
const char *opt_name;
|
const char *opt_name;
|
||||||
const char *name;
|
const char *name;
|
||||||
int (*available)(void);
|
|
||||||
int (*init_machine)(MachineState *ms);
|
int (*init_machine)(MachineState *ms);
|
||||||
void (*setup_post)(MachineState *ms, AccelState *accel);
|
void (*setup_post)(MachineState *ms, AccelState *accel);
|
||||||
bool *allowed;
|
bool *allowed;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue