svn commit: r285879 - head/sys/dev/e1000
Sean Bruno
sbruno at FreeBSD.org
Sat Jul 25 19:24:34 UTC 2015
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;
More information about the svn-src-all
mailing list