summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-03-23 05:19:44 +0000
committerdg <dg@FreeBSD.org>1995-03-23 05:19:44 +0000
commit559c6d8623a4fd4ec3e3626f80fa15b34ad2c7d2 (patch)
treeb0ad54d0c1117260a03d39214102e293c4e87286 /sys/vm
parentd76703731de2fbd4e703216e924e33b9ad214e49 (diff)
downloadFreeBSD-src-559c6d8623a4fd4ec3e3626f80fa15b34ad2c7d2.zip
FreeBSD-src-559c6d8623a4fd4ec3e3626f80fa15b34ad2c7d2.tar.gz
Fixed warning caused by returning a value in a void function (introduced
in a recent commit by me). Relaxed checks before calling vm_object_remove; a non-internal object always has a pager.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 69fbfd6..0a0f22c 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.36 1995/03/22 08:08:44 davidg Exp $
+ * $Id: vm_object.c,v 1.37 1995/03/22 12:24:10 davidg Exp $
*/
/*
@@ -345,7 +345,7 @@ vm_object_deallocate(object)
* Make sure no one can look us up now.
*/
object->flags |= OBJ_DEAD;
- if (pager != NULL && (object->flags & OBJ_INTERNAL) == 0)
+ if ((object->flags & OBJ_INTERNAL) == 0)
vm_object_remove(pager);
vm_object_cache_unlock();
@@ -503,7 +503,7 @@ vm_object_page_clean(object, start, end, syncio)
int s;
if (object->pager == NULL)
- return 1;
+ return;
if (start != end) {
start = trunc_page(start);
OpenPOWER on IntegriCloud