summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_swap.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-10 07:34:04 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-10 07:34:04 +0000
commit882a55de2fd002351474e9c0e86dbc6a6b57a222 (patch)
tree45271e551ff7dff892fa86fe0905795b5fd318db /sys/uvm/uvm_swap.c
parente5d3cd5cd39677f3dcf69d1fb8c1d3737023ccc3 (diff)
dstkva is not a pointer, so comparison with NULL is inappropriate.
Diffstat (limited to 'sys/uvm/uvm_swap.c')
-rw-r--r--sys/uvm/uvm_swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c
index 856c5c7af24..39cb3073ca7 100644
--- a/sys/uvm/uvm_swap.c
+++ b/sys/uvm/uvm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_swap.c,v 1.57 2003/12/02 01:52:32 mickey Exp $ */
+/* $OpenBSD: uvm_swap.c,v 1.58 2003/12/10 07:34:03 itojun Exp $ */
/* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */
/*
@@ -1888,7 +1888,7 @@ uvm_swap_io(pps, startslot, npages, flags)
}
dstkva = uvm_pagermapin(tpps, npages, swmapflags);
- if (dstkva == NULL) {
+ if (dstkva == 0) {
uvm_pagermapout(kva, npages);
uvm_swap_freepages(tpps, npages);
return (VM_PAGER_AGAIN);