From 521987c3e5762f23ee273af85f4b2edbdd1acdfa Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 29 Jun 2015 13:06:24 +0000 Subject: [PATCH] Simplify code, no need to test the flag before clearing it. Submitted by: ed MFC after: 12 days --- sys/ufs/ffs/ffs_vfsops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index af99daec65f6..5d8a501f6567 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -2072,8 +2072,7 @@ ffs_bufwrite(struct buf *bp) if (bp->b_vflags & BV_BKGRDINPROG) panic("bufwrite: still writing"); } - if ((bp->b_vflags & BV_BKGRDERR) != 0) - bp->b_vflags &= ~BV_BKGRDERR; + bp->b_vflags &= ~BV_BKGRDERR; BO_UNLOCK(bp->b_bufobj); /*