summaryrefslogtreecommitdiff
path: root/source/components/utilities/utcache.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2013-12-19 05:51:01 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2013-12-19 05:51:01 +0000
commit86e94f4ac956e0aed23de30c7a458d215f54749a (patch)
tree7fcfdcc62c3319ffd669b18b080d40c9c5897210 /source/components/utilities/utcache.c
parentde06c6b7e0851b337ee530b0ab8818f4216b06b2 (diff)
Notes
Diffstat (limited to 'source/components/utilities/utcache.c')
-rw-r--r--source/components/utilities/utcache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/components/utilities/utcache.c b/source/components/utilities/utcache.c
index 54c73e2a425a4..7d84f848fa87a 100644
--- a/source/components/utilities/utcache.c
+++ b/source/components/utilities/utcache.c
@@ -286,13 +286,13 @@ AcpiOsAcquireObject (
if (!Cache)
{
- return (NULL);
+ return_PTR (NULL);
}
Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES);
if (ACPI_FAILURE (Status))
{
- return (NULL);
+ return_PTR (NULL);
}
ACPI_MEM_TRACKING (Cache->Requests++);
@@ -315,7 +315,7 @@ AcpiOsAcquireObject (
Status = AcpiUtReleaseMutex (ACPI_MTX_CACHES);
if (ACPI_FAILURE (Status))
{
- return (NULL);
+ return_PTR (NULL);
}
/* Clear (zero) the previously used Object */
@@ -340,16 +340,16 @@ AcpiOsAcquireObject (
Status = AcpiUtReleaseMutex (ACPI_MTX_CACHES);
if (ACPI_FAILURE (Status))
{
- return (NULL);
+ return_PTR (NULL);
}
Object = ACPI_ALLOCATE_ZEROED (Cache->ObjectSize);
if (!Object)
{
- return (NULL);
+ return_PTR (NULL);
}
}
- return (Object);
+ return_PTR (Object);
}
#endif /* ACPI_USE_LOCAL_CACHE */