kernel - Remove unneeded initialization
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 04:19:40 +0000 (20:19 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 04:19:40 +0000 (20:19 -0800)
* vm_object->flags is set to 0 by _vm_object_allocate() and does not
  need to be set to 0 again.

sys/vm/vnode_pager.c

index e644189..b4047d1 100644 (file)
@@ -177,7 +177,6 @@ vnode_pager_alloc(void *handle, off_t length, vm_prot_t prot, off_t offset,
                 * And an object of the appropriate size
                 */
                object = vm_object_allocate_hold(OBJT_VNODE, lsize);
-               object->flags = 0;
                object->handle = handle;
                vp->v_object = object;
                vp->v_filesize = length;