From 34272c569e835553440ea3c905c8ae4c09f15f3c Mon Sep 17 00:00:00 2001 From: yamt Date: Thu, 14 Aug 2008 00:47:13 +0000 Subject: [PATCH] remove always-true conditionals. --- sys/miscfs/genfs/genfs_io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/miscfs/genfs/genfs_io.c b/sys/miscfs/genfs/genfs_io.c index 48544472e89c..b307f6d358c7 100644 --- a/sys/miscfs/genfs/genfs_io.c +++ b/sys/miscfs/genfs/genfs_io.c @@ -1,4 +1,4 @@ -/* $NetBSD: genfs_io.c,v 1.10 2008/08/11 02:51:01 yamt Exp $ */ +/* $NetBSD: genfs_io.c,v 1.11 2008/08/14 00:47:13 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.10 2008/08/11 02:51:01 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.11 2008/08/14 00:47:13 yamt Exp $"); #include #include @@ -593,14 +593,14 @@ loopdone: * XXX: This assumes that we come here only via * the mmio path */ - if (vp->v_mount->mnt_wapbl && write) { + if (vp->v_mount->mnt_wapbl) { error = WAPBL_BEGIN(vp->v_mount); } if (!error) { error = GOP_ALLOC(vp, startoffset, npages << PAGE_SHIFT, 0, cred); - if (vp->v_mount->mnt_wapbl && write) { + if (vp->v_mount->mnt_wapbl) { WAPBL_END(vp->v_mount); } }