X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..c6bf4f310a33a9262d455ea4d3f0630b1255e3fe:/iokit/Kernel/IODeviceMemory.cpp diff --git a/iokit/Kernel/IODeviceMemory.cpp b/iokit/Kernel/IODeviceMemory.cpp index ee178c845..ecc175f08 100644 --- a/iokit/Kernel/IODeviceMemory.cpp +++ b/iokit/Kernel/IODeviceMemory.cpp @@ -62,8 +62,8 @@ IODeviceMemory::arrayFromList( IOItemCount i; array = OSArray::withCapacity( count ); - if (0 == array) { - return 0; + if (NULL == array) { + return NULL; } for (i = 0; i < count; i++) { @@ -74,7 +74,7 @@ IODeviceMemory::arrayFromList( range->release(); } else { array->release(); - array = 0; + array = NULL; break; } }