Author: rmacklem
Date: Mon Jul 13 01:28:45 2020
New Revision: 363137
URL: https://svnweb.freebsd.org/changeset/base/363137

Log:
  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.

Modified:
  head/sys/fs/nfsclient/nfs_clcomsubs.c

Modified: head/sys/fs/nfsclient/nfs_clcomsubs.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clcomsubs.c       Sun Jul 12 20:59:52 2020        
(r363136)
+++ head/sys/fs/nfsclient/nfs_clcomsubs.c       Mon Jul 13 01:28:45 2020        
(r363137)
@@ -145,13 +145,12 @@ nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *ui
                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;
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to