From f6dfb83547d0cf5aa938cce391ba33c32a97bed9 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Fri, 26 Sep 2014 17:45:22 -0300 Subject: [PATCH] accel: Make AccelClass.available() optional When we move accel classes outside accel.c, the available() function won't be necessary anymore, because the classes will be registered only if the accelerator code is really enabled at build time. Reviewed-by: Paolo Bonzini Signed-off-by: Eduardo Habkost Signed-off-by: Paolo Bonzini --- accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel.c b/accel.c index a3e2fd9149..85177f1b52 100644 --- a/accel.c +++ b/accel.c @@ -82,7 +82,7 @@ int configure_accelerator(MachineClass *mc) fprintf(stderr, "\"%s\" accelerator does not exist.\n", buf); continue; } - if (!acc->available()) { + if (acc->available && !acc->available()) { printf("%s not supported for this target\n", acc->name); continue;