Received: from eggs.gnu.org ([2001:4830:134:3::10]:36233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOTaV-0006rg-Er for qemu-devel@nongnu.org; Wed, 27 Jan 2016 12:09:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOTaU-0007GF-E8 for qemu-devel@nongnu.org; Wed, 27 Jan 2016 12:08:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOTaU-0007G8-8N for qemu-devel@nongnu.org; Wed, 27 Jan 2016 12:08:58 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 684F9C60E4 for ; Wed, 27 Jan 2016 17:08:57 +0000 (UTC) Date: Wed, 27 Jan 2016 18:08:53 +0100 From: Igor Mammedov Message-ID: <20160127180853.3834aab5@nial.brq.redhat.com> In-Reply-To: <20160126145946.GH4218@thinpad.lan.raisama.net> References: <1453564933-29638-1-git-send-email-ehabkost@redhat.com> <20160126145946.GH4218@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 7/5] acpi: Remove unused acpi_table_add_builtin() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: "Michael S. Tsirkin" , Laszlo Ersek , Marcel Apfelbaum , Markus Armbruster , qemu-devel@nongnu.org, Paolo Bonzini , John Snow On Tue, 26 Jan 2016 12:59:46 -0200 Eduardo Habkost wrote: > Signed-off-by: Eduardo Habkost Reviewed-by: Igor Mammedov > --- > Additional code removal. > --- > hw/acpi/core.c | 10 +--------- > 1 file changed, 1 insertion(+), 9 deletions(-) > > diff --git a/hw/acpi/core.c b/hw/acpi/core.c > index 21e113d..c2a5383 100644 > --- a/hw/acpi/core.c > +++ b/hw/acpi/core.c > @@ -309,14 +309,6 @@ out: > error_propagate(errp, err); > } > > -static bool acpi_table_builtin = false; > - > -void acpi_table_add_builtin(const QemuOpts *opts, Error **errp) > -{ > - acpi_table_builtin = true; > - acpi_table_add(opts, errp); > -} > - > unsigned acpi_table_len(void *current) > { > struct acpi_table_header *hdr = current - sizeof(hdr->_length); > @@ -332,7 +324,7 @@ void *acpi_table_hdr(void *h) > > uint8_t *acpi_table_first(void) > { > - if (acpi_table_builtin || !acpi_tables) { > + if (!acpi_tables) { > return NULL; > } > return acpi_table_hdr(acpi_tables + ACPI_TABLE_PFX_SIZE);