acpi: cleanup bios_linker_loader_cleanup()
commit8cc87c3179f3988cf870ae4e637123770bdf82f1
authorIgor Mammedov <imammedo@redhat.com>
Thu, 19 May 2016 13:19:27 +0000 (19 15:19 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Jun 2016 12:39:27 +0000 (7 15:39 +0300)
treeb32a80ded84355d4921b1326c4d3a55ef5e4a3a7
parentad9671b8700ac491564d964f79ee9d1f106756ae
acpi: cleanup bios_linker_loader_cleanup()

bios_linker_loader_cleanup() is called only from one place
and returned value is immediately freed wich makes returning
pointer from bios_linker_loader_cleanup() useless.

Cleanup bios_linker_loader_cleanup() by freeing
data there so that caller won't have to free it.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
hw/acpi/bios-linker-loader.c
include/hw/acpi/bios-linker-loader.h