ACPICA: Fix 'may be used uninitialized' warning in acpi_ns_repair_object()
authorBen Hutchings <ben@decadent.org.uk>
Mon, 6 Nov 2017 00:47:19 +0000 (00:47 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:41 +0000 (13:34 +0000)
commitdffdef9c27c1baa0faf2db2f921301e948ec0ba4
treebc662235301948eb64ac146448a4c06762a087c9
parent8264be3726a0d05711b1df810f2181c48e4c4cf0
ACPICA: Fix 'may be used uninitialized' warning in acpi_ns_repair_object()

gcc 4.7 warns that new_object may be used uninitialized in this
function.  In fact, all the cases where it's not initialised are
errors that will result in returning early without using it.
Silence the warning by initialising to NULL.

This was done upstream as part of commit d5a36100f62f "ACPICA: Add
mechanism for early object repairs on a per-name basis".

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/acpi/acpica/nsrepair.c