summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_core.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2002-08-21 23:39:52 +0000
committerarchie <archie@FreeBSD.org>2002-08-21 23:39:52 +0000
commit5ea3052c0e0ddd257c2631b341c26580d485f5a2 (patch)
tree1aa91b5ec5517c217eec4a7a21d7bbdda3cfac9e /sys/vm/uma_core.c
parentb2a49bf492ead0fa0da6c51debe0ead1c2c57a82 (diff)
downloadFreeBSD-src-5ea3052c0e0ddd257c2631b341c26580d485f5a2.zip
FreeBSD-src-5ea3052c0e0ddd257c2631b341c26580d485f5a2.tar.gz
Don't use "NULL" when "0" is really meant.
Diffstat (limited to 'sys/vm/uma_core.c')
-rw-r--r--sys/vm/uma_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 1af1122..14e1362 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -835,7 +835,7 @@ obj_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
vm_page_t p;
int pages;
- retkva = NULL;
+ retkva = 0;
pages = zone->uz_pages;
/*
@@ -848,7 +848,7 @@ obj_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
return (NULL);
zkva = zone->uz_kva + pages * PAGE_SIZE;
- if (retkva == NULL)
+ if (retkva == 0)
retkva = zkva;
pmap_qenter(zkva, &p, 1);
bytes -= PAGE_SIZE;
OpenPOWER on IntegriCloud