diff options
Diffstat (limited to 'drivers/acpi/namespace/nsnames.c')
| -rw-r--r-- | drivers/acpi/namespace/nsnames.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/acpi/namespace/nsnames.c b/drivers/acpi/namespace/nsnames.c index bd577387800..42a39a7c96e 100644 --- a/drivers/acpi/namespace/nsnames.c +++ b/drivers/acpi/namespace/nsnames.c | |||
| @@ -115,7 +115,6 @@ acpi_ns_build_external_path(struct acpi_namespace_node *node, | |||
| 115 | return (AE_OK); | 115 | return (AE_OK); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | #ifdef ACPI_DEBUG_OUTPUT | ||
| 119 | /******************************************************************************* | 118 | /******************************************************************************* |
| 120 | * | 119 | * |
| 121 | * FUNCTION: acpi_ns_get_external_pathname | 120 | * FUNCTION: acpi_ns_get_external_pathname |
| @@ -142,7 +141,7 @@ char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) | |||
| 142 | 141 | ||
| 143 | size = acpi_ns_get_pathname_length(node); | 142 | size = acpi_ns_get_pathname_length(node); |
| 144 | if (!size) { | 143 | if (!size) { |
| 145 | return (NULL); | 144 | return_PTR(NULL); |
| 146 | } | 145 | } |
| 147 | 146 | ||
| 148 | /* Allocate a buffer to be returned to caller */ | 147 | /* Allocate a buffer to be returned to caller */ |
| @@ -157,12 +156,12 @@ char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) | |||
| 157 | 156 | ||
| 158 | status = acpi_ns_build_external_path(node, size, name_buffer); | 157 | status = acpi_ns_build_external_path(node, size, name_buffer); |
| 159 | if (ACPI_FAILURE(status)) { | 158 | if (ACPI_FAILURE(status)) { |
| 160 | return (NULL); | 159 | ACPI_FREE(name_buffer); |
| 160 | return_PTR(NULL); | ||
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | return_PTR(name_buffer); | 163 | return_PTR(name_buffer); |
| 164 | } | 164 | } |
| 165 | #endif | ||
| 166 | 165 | ||
| 167 | /******************************************************************************* | 166 | /******************************************************************************* |
| 168 | * | 167 | * |
