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>
This commit is contained in:
parent
ad9671b870
commit
8cc87c3179
3 changed files with 6 additions and 7 deletions
|
|
@ -26,5 +26,5 @@ void bios_linker_loader_add_pointer(BIOSLinker *linker,
|
|||
void *pointer,
|
||||
uint8_t pointer_size);
|
||||
|
||||
void *bios_linker_loader_cleanup(BIOSLinker *linker);
|
||||
void bios_linker_loader_cleanup(BIOSLinker *linker);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue