Minor code cleanup that removes "nd->nd_bpos = mcp;" in both if and else.

The statement "nd->nd_bpos = mcp;" was in both the if and else. Correct,
but potentially confusing.  This patch fixes this.

There should be no semantics change caused by this commit.
This commit is contained in:
Rick Macklem 2020-07-13 01:28:45 +00:00
parent 57f09d08c6
commit 6722f6e577
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363137

View File

@ -145,13 +145,12 @@ nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *uiop, int siz)
for (left = 0; left < rem; left++)
*mcp++ = '\0';
mp->m_len += rem;
nd->nd_bpos = mcp;
if ((nd->nd_flag & ND_EXTPG) != 0) {
nd->nd_bextpgsiz -= rem;
mp->m_epg_last_len += rem;
}
} else
nd->nd_bpos = mcp;
}
nd->nd_bpos = mcp;
nd->nd_mb = mp;
}