diff options
author | alc <alc@FreeBSD.org> | 2009-06-07 19:38:26 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-06-07 19:38:26 +0000 |
commit | 919e3cbf2805715b8fefeab48237aaec49b8b9e9 (patch) | |
tree | 68d74e068916a4fdd1a70c4eef2639718f803b20 /sys/vm/vm_glue.c | |
parent | 46d6a0d647524867f373c3528b384fdaef93bd07 (diff) | |
download | FreeBSD-src-919e3cbf2805715b8fefeab48237aaec49b8b9e9.zip FreeBSD-src-919e3cbf2805715b8fefeab48237aaec49b8b9e9.tar.gz |
Eliminate unnecessary obfuscation when testing a page's valid bits.
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index b9a9ae7..9e43a3f 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -253,7 +253,7 @@ vm_imgact_hold_page(vm_object_t object, vm_ooffset_t offset) VM_OBJECT_LOCK(object); pindex = OFF_TO_IDX(offset); m = vm_page_grab(object, pindex, VM_ALLOC_NORMAL | VM_ALLOC_RETRY); - if ((m->valid & VM_PAGE_BITS_ALL) != VM_PAGE_BITS_ALL) { + if (m->valid != VM_PAGE_BITS_ALL) { ma[0] = m; rv = vm_pager_get_pages(object, ma, 1, 0); m = vm_page_lookup(object, pindex); |