diff options
author | dg <dg@FreeBSD.org> | 1995-03-23 05:19:44 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-03-23 05:19:44 +0000 |
commit | 559c6d8623a4fd4ec3e3626f80fa15b34ad2c7d2 (patch) | |
tree | b0ad54d0c1117260a03d39214102e293c4e87286 /sys/vm | |
parent | d76703731de2fbd4e703216e924e33b9ad214e49 (diff) | |
download | FreeBSD-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.c | 6 |
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); |