summaryrefslogtreecommitdiffstats
path: root/libs/binder/MemoryHeapPmem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/binder/MemoryHeapPmem.cpp')
-rw-r--r--libs/binder/MemoryHeapPmem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/MemoryHeapPmem.cpp b/libs/binder/MemoryHeapPmem.cpp
index 599c9ae..3806a42 100644
--- a/libs/binder/MemoryHeapPmem.cpp
+++ b/libs/binder/MemoryHeapPmem.cpp
@@ -108,7 +108,7 @@ void SubRegionMemory::revoke()
// promote() it.
#if HAVE_ANDROID_OS
- if (mSize != NULL) {
+ if (mSize != 0) {
const sp<MemoryHeapPmem>& heap(getHeap());
int our_fd = heap->heapID();
struct pmem_region sub;