Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2014 02:39:06 +0000 (UTC)
From:      Bryan Venteicher <bryanv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267252 - head/sys/dev/vmware/vmxnet3
Message-ID:  <201406090239.s592d6rU011003@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406090239.s592d6rU011003>