diff mbox

[RFC,11/25] accel: Remove tcg_available() function

Message ID 1404943462-711-12-git-send-email-ehabkost@redhat.com
State New
Headers show

Commit Message

Eduardo Habkost July 9, 2014, 10:04 p.m. UTC
As the function always return 1, it is not needed anymore.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 arch_init.c                | 5 -----
 hw/core/accel.c            | 1 -
 include/sysemu/arch_init.h | 1 -
 3 files changed, 7 deletions(-)
diff mbox

Patch

diff --git a/arch_init.c b/arch_init.c
index 8ddaf35..7870c0c 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -1335,11 +1335,6 @@  void cpudef_init(void)
 #endif
 }
 
-int tcg_available(void)
-{
-    return 1;
-}
-
 int kvm_available(void)
 {
 #ifdef CONFIG_KVM
diff --git a/hw/core/accel.c b/hw/core/accel.c
index 95fbf1e..9aa853f 100644
--- a/hw/core/accel.c
+++ b/hw/core/accel.c
@@ -119,7 +119,6 @@  static void tcg_accel_class_init(ObjectClass *oc, void *data)
 {
     AccelClass *ac = ACCEL_CLASS(oc);
     ac->name = "tcg";
-    ac->available = tcg_available;
     ac->init = tcg_init;
     ac->allowed = &tcg_allowed;
 }
diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h
index 182d48d..5968837 100644
--- a/include/sysemu/arch_init.h
+++ b/include/sysemu/arch_init.h
@@ -32,7 +32,6 @@  void do_smbios_option(QemuOpts *opts);
 void ram_mig_init(void);
 void cpudef_init(void);
 void audio_init(void);
-int tcg_available(void);
 int kvm_available(void);
 int xen_available(void);