From f8ae94076ea7b991861e9cb23ffd2fefe8592b08 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 15 Nov 2010 07:53:21 +0100 Subject: [PATCH] kernel: Remove some redundant initialization. --- sys/dev/netif/ae/if_ae.c | 1 - sys/dev/netif/tl/if_tl.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/sys/dev/netif/ae/if_ae.c b/sys/dev/netif/ae/if_ae.c index 931fb89625..b0b0a7af32 100644 --- a/sys/dev/netif/ae/if_ae.c +++ b/sys/dev/netif/ae/if_ae.c @@ -905,7 +905,6 @@ ae_init(void *xsc) * Init mailboxes. */ sc->txd_cur = sc->rxd_cur = 0; - sc->txd_cur = sc->rxd_cur = 0; sc->txs_ack = sc->txd_ack = 0; sc->rxd_cur = 0; AE_WRITE_2(sc, AE_MB_TXD_IDX_REG, sc->txd_cur); diff --git a/sys/dev/netif/tl/if_tl.c b/sys/dev/netif/tl/if_tl.c index 9bc6c0f76d..b525904cae 100644 --- a/sys/dev/netif/tl/if_tl.c +++ b/sys/dev/netif/tl/if_tl.c @@ -30,7 +30,6 @@ * THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/pci/if_tl.c,v 1.51.2.5 2001/12/16 15:46:08 luigi Exp $ - * $DragonFly: src/sys/dev/netif/tl/if_tl.c,v 1.40 2008/08/17 04:32:34 sephe Exp $ */ /* @@ -1747,7 +1746,6 @@ tl_encap(struct tl_softc *sc, struct tl_chain *c, struct mbuf *m_head) * the fragment pointers. Stop when we run out * of fragments or hit the end of the mbuf chain. */ - m = m_head; total_len = 0; for (m = m_head, frag = 0; m != NULL; m = m->m_next) { -- 2.41.0