summaryrefslogtreecommitdiff
path: root/source/include/actypes.h
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2023-02-07 10:35:35 -0800
committerGitHub <noreply@github.com>2023-02-07 10:35:35 -0800
commitf6734e24075724961ca99f24270f5e07d6264ebf (patch)
treefdc955fab723d8f310a8a172f6421c559ba1da25 /source/include/actypes.h
parent8e305d43ea7c80df310647a29b7609aeba57085d (diff)
downloadacpica-revert-776-dangling-pointer.tar.gz
Revert "Fix dangling pointer warning for AcpiUtInitStackPtrTrace"revert-776-dangling-pointer
Diffstat (limited to 'source/include/actypes.h')
-rw-r--r--source/include/actypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/actypes.h b/source/include/actypes.h
index 8486d2b98..77fa92123 100644
--- a/source/include/actypes.h
+++ b/source/include/actypes.h
@@ -649,7 +649,7 @@ typedef UINT64 ACPI_INTEGER;
/* Pointer manipulation */
-#define ACPI_CAST_PTR(t, p) ((t *) (ACPI_UINTPTR_T) (void *) (p))
+#define ACPI_CAST_PTR(t, p) ((t *) (ACPI_UINTPTR_T) (p))
#define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (ACPI_UINTPTR_T) (p))
#define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) + (ACPI_SIZE)(b)))
#define ACPI_SUB_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) - (ACPI_SIZE)(b)))