aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-03-23 05:19:44 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-03-23 05:19:44 +0000
commitd7a0fc936076e14d253c4b5efd8e833e9204e5d1 (patch)
treeb0ad54d0c1117260a03d39214102e293c4e87286 /sys/vm/vm_object.c
parent89395683eaea4a2504df5ac263ef2c4e0b871b56 (diff)
downloadsrc-d7a0fc936076e14d253c4b5efd8e833e9204e5d1.tar.gz
src-d7a0fc936076e14d253c4b5efd8e833e9204e5d1.zip
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.
Notes
Notes: svn path=/head/; revision=7263
Diffstat (limited to 'sys/vm/vm_object.c')
-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 69fbfd6d4eb6..0a0f22c199b7 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);