mmap: Remove an additional reference to the disablexworkaround variable
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 May 2010 21:19:15 +0000 (14:19 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 May 2010 21:19:15 +0000 (14:19 -0700)
* Fix kernel build, remove a second disablexworkaround check that was
  missed.

sys/vm/vm_mmap.c

index d4442d3..6c4c57b 100644 (file)
@@ -361,9 +361,7 @@ kern_mmap(struct vmspace *vms, caddr_t uaddr, size_t ulen,
                         * we're at securelevel < 1, to allow the XIG X server
                         * to continue to work.
                         */
-
-                       if ((flags & MAP_SHARED) != 0 ||
-                           (vp->v_type == VCHR && disablexworkaround)) {
+                       if ((flags & MAP_SHARED) != 0 || vp->v_type == VCHR) {
                                if ((fp->f_flag & FWRITE) != 0) {
                                        struct vattr va;
                                        if ((error = VOP_GETATTR(vp, &va))) {