]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IODeviceMemory.cpp
xnu-6153.81.5.tar.gz
[apple/xnu.git] / iokit / Kernel / IODeviceMemory.cpp
index ee178c845b69e0067333c2d197b79d56474cc08b..ecc175f08322b207df02657ecec7919fc218b8d9 100644 (file)
@@ -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;
                }
        }