Clean up silly code case.

This silly code segment has existed in the sources since it was brought
into FreeBSD 10 years ago. I honestly have no idea why this was done.
It was possible that I thought that it might have been better to not
set B_ASYNC for the "else" case, but I can't remember.
Anyhow, this patch gets rid of the if/else that does the same thing
either way, since it looks silly and upsets a static analyser.
This will have no semantic effect on the NFS client.

PR:		238167
This commit is contained in:
Rick Macklem 2019-05-31 00:56:31 +00:00
parent 5c59c0d4ef
commit 26fd36b29d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348451

View File

@ -2940,10 +2940,7 @@ ncl_flush(struct vnode *vp, int waitfor, struct thread *td,
}
BO_UNLOCK(bo);
bremfree(bp);
if (passone || !commit)
bp->b_flags |= B_ASYNC;
else
bp->b_flags |= B_ASYNC;
bp->b_flags |= B_ASYNC;
bwrite(bp);
if (newnfs_sigintr(nmp, td)) {
error = EINTR;