diff options
author | Bob Moore <robert.moore@intel.com> | 2012-10-30 22:26:01 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:31:24 -0500 |
commit | 68aafc35161dcc9d365a32c2f9f077aedc61754d (patch) | |
tree | 86604dba947e9ee53dad4e613f1f1d7f47e8b5b8 /drivers/acpi/acpica/rslist.c | |
parent | 86ff0e508f88eda6e479a897476026055831d2d8 (diff) |
ACPICA: Audit/update for ACPICA return macros and debug depth counter
1) Ensure that all functions that use the various TRACE macros
also use the appropriate ACPICA return macros.
2) Ensure that all normal return statements surround the return
expression (value) with parens.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/rslist.c')
-rw-r--r-- | drivers/acpi/acpica/rslist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/rslist.c b/drivers/acpi/acpica/rslist.c index 46b5324b22d6..8b64db9a3fd2 100644 --- a/drivers/acpi/acpica/rslist.c +++ b/drivers/acpi/acpica/rslist.c | |||
@@ -109,7 +109,7 @@ acpi_rs_convert_aml_to_resources(u8 * aml, | |||
109 | ACPI_ERROR((AE_INFO, | 109 | ACPI_ERROR((AE_INFO, |
110 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", | 110 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", |
111 | resource_index)); | 111 | resource_index)); |
112 | return (AE_AML_INVALID_RESOURCE_TYPE); | 112 | return_ACPI_STATUS(AE_AML_INVALID_RESOURCE_TYPE); |
113 | } | 113 | } |
114 | 114 | ||
115 | /* Convert the AML byte stream resource to a local resource struct */ | 115 | /* Convert the AML byte stream resource to a local resource struct */ |
@@ -200,7 +200,7 @@ acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, | |||
200 | ACPI_ERROR((AE_INFO, | 200 | ACPI_ERROR((AE_INFO, |
201 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", | 201 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", |
202 | resource->type)); | 202 | resource->type)); |
203 | return (AE_AML_INVALID_RESOURCE_TYPE); | 203 | return_ACPI_STATUS(AE_AML_INVALID_RESOURCE_TYPE); |
204 | } | 204 | } |
205 | 205 | ||
206 | status = acpi_rs_convert_resource_to_aml(resource, | 206 | status = acpi_rs_convert_resource_to_aml(resource, |