From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcAnZ-0006HY-Ne for qemu-devel@nongnu.org; Thu, 09 Oct 2014 06:18:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcAnQ-0000Wq-Ms for qemu-devel@nongnu.org; Thu, 09 Oct 2014 06:18:17 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:42031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcAnQ-0000Wh-Gj for qemu-devel@nongnu.org; Thu, 09 Oct 2014 06:18:08 -0400 Received: by mail-wg0-f41.google.com with SMTP id b13so894230wgh.0 for ; Thu, 09 Oct 2014 03:18:07 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 9 Oct 2014 12:17:25 +0200 Message-Id: <1412849855-12661-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1412849438-12274-1-git-send-email-pbonzini@redhat.com> References: <1412849438-12274-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 18/28] accel: Remove tcg_available() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Eduardo Habkost From: Eduardo Habkost As the function always return 1, it is not needed anymore. Signed-off-by: Eduardo Habkost Reviewed-by: Paolo Bonzini Signed-off-by: Paolo Bonzini --- accel.c | 1 - arch_init.c | 5 ----- include/sysemu/arch_init.h | 1 - 3 files changed, 7 deletions(-) diff --git a/accel.c b/accel.c index 2cf47337..0f3fcee 100644 --- a/accel.c +++ b/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/arch_init.c b/arch_init.c index c974f3f..9b3e25d 100644 --- a/arch_init.c +++ b/arch_init.c @@ -1337,11 +1337,6 @@ void cpudef_init(void) #endif } -int tcg_available(void) -{ - return 1; -} - int kvm_available(void) { #ifdef CONFIG_KVM diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 769ec06..54b36c1 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -33,7 +33,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); -- 1.8.3.1