Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2015 19:24:34 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285879 - head/sys/dev/e1000
Message-ID:  <201507251924.t6PJOYO8094989@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Sat Jul 25 19:24:33 2015
New Revision: 285879
URL: https://svnweb.freebsd.org/changeset/base/285879

Log:
  Remove unused txd_saved.
  
  Intialize txd_upper, txd_lower and txd_used at declaration.
  
  Differential Revision:	D3174
  Reviewed by:	erj hiren
  MFC after:	2 weeks
  Sponsored by:	Limelight Networks

Modified:
  head/sys/dev/e1000/if_em.c

Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c	Sat Jul 25 18:29:06 2015	(r285878)
+++ head/sys/dev/e1000/if_em.c	Sat Jul 25 19:24:33 2015	(r285879)
@@ -1872,13 +1872,12 @@ em_xmit(struct tx_ring *txr, struct mbuf
 	struct ether_header	*eh;
 	struct ip		*ip = NULL;
 	struct tcphdr		*tp = NULL;
-	u32			txd_upper, txd_lower, txd_used, txd_saved;
+	u32			txd_upper = 0, txd_lower = 0, txd_used = 0;
 	int			ip_off, poff;
 	int			nsegs, i, j, first, last = 0;
 	int			error, do_tso, tso_desc = 0, remap = 1;
 
 	m_head = *m_headp;
-	txd_upper = txd_lower = txd_used = txd_saved = 0;
 	do_tso = ((m_head->m_pkthdr.csum_flags & CSUM_TSO) != 0);
 	ip_off = poff = 0;
 



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