[PATCH 03/10] acpi: method: fix shadowing of variable 'obj'
Colin King
colin.king at canonical.com
Thu Jun 12 18:03:42 UTC 2014
From: Colin Ian King <colin.king at canonical.com>
variable 'obj' was being shadowed, so rename the inner scoped
one to objtmp just to avoid any confusion
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/acpi/method/method.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
index 9b789cf..1de08ec 100644
--- a/src/acpi/method/method.c
+++ b/src/acpi/method/method.c
@@ -670,8 +670,8 @@ static void method_test_NULL_return(
*/
if (fw->acpica_mode & FWTS_ACPICA_MODE_SLACK) {
if ((buf != NULL) && (buf->Pointer != NULL)) {
- ACPI_OBJECT *obj = buf->Pointer;
- if (obj->Type == ACPI_TYPE_INTEGER) {
+ ACPI_OBJECT *objtmp = buf->Pointer;
+ if (objtmp->Type == ACPI_TYPE_INTEGER) {
fwts_passed(fw, "%s returned an ACPI_TYPE_INTEGER as expected in slack mode.",
name);
return;
--
2.0.0
More information about the fwts-devel
mailing list