svn commit: r267252 - head/sys/dev/vmware/vmxnet3

Bryan Venteicher bryanv at FreeBSD.org
Mon Jun 9 02:39:06 UTC 2014


Author: bryanv
Date: Mon Jun  9 02:39:05 2014
New Revision: 267252
URL: http://svnweb.freebsd.org/changeset/base/267252

Log:
  Remove an unnecessary variable reassignment
  
  And it would be bad if 'm' was different from '*m0' at this
  point, since we've already populated the SG list.
  
  MFC after:	3 days

Modified:
  head/sys/dev/vmware/vmxnet3/if_vmx.c

Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c
==============================================================================
--- head/sys/dev/vmware/vmxnet3/if_vmx.c	Mon Jun  9 02:33:39 2014	(r267251)
+++ head/sys/dev/vmware/vmxnet3/if_vmx.c	Mon Jun  9 02:39:05 2014	(r267252)
@@ -2757,7 +2757,7 @@ vmxnet3_txq_encap(struct vmxnet3_txqueue
 		}
 	}
 
-	txr->vxtxr_txbuf[txr->vxtxr_head].vtxb_m = m = *m0;
+	txr->vxtxr_txbuf[txr->vxtxr_head].vtxb_m = m;
 	sop = &txr->vxtxr_txd[txr->vxtxr_head];
 	gen = txr->vxtxr_gen ^ 1;	/* Owned by cpu (yet) */
 


More information about the svn-src-all mailing list