From d75a37d50b754850bf247ffe1b81d92a664241ff Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 31 Oct 2004 17:41:02 +0000 Subject: don't swap zeros --- sys/dev/ic/xl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index 6860bed48a5..8291915f829 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.59 2004/10/23 05:14:33 brad Exp $ */ +/* $OpenBSD: xl.c,v 1.60 2004/10/31 17:41:01 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1183,7 +1183,7 @@ xl_newbuf(sc, c) htole32(c->map->dm_segs[0].ds_addr + ETHER_ALIGN); c->xl_ptr->xl_frag.xl_len = htole32(c->map->dm_segs[0].ds_len | XL_LAST_FRAG); - c->xl_ptr->xl_status = htole32(0); + c->xl_ptr->xl_status = 0; bus_dmamap_sync(sc->sc_dmat, sc->sc_listmap, ((caddr_t)c->xl_ptr - sc->sc_listkva), sizeof(struct xl_list), @@ -1266,7 +1266,7 @@ again: */ if (rxstat & XL_RXSTAT_UP_ERROR) { ifp->if_ierrors++; - cur_rx->xl_ptr->xl_status = htole32(0); + cur_rx->xl_ptr->xl_status = 0; continue; } @@ -1279,7 +1279,7 @@ again: printf("%s: bad receive status -- " "packet dropped\n", sc->sc_dev.dv_xname); ifp->if_ierrors++; - cur_rx->xl_ptr->xl_status = htole32(0); + cur_rx->xl_ptr->xl_status = 0; continue; } @@ -1295,7 +1295,7 @@ again: */ if (xl_newbuf(sc, cur_rx) == ENOBUFS) { ifp->if_ierrors++; - cur_rx->xl_ptr->xl_status = htole32(0); + cur_rx->xl_ptr->xl_status = 0; continue; } @@ -1911,7 +1911,7 @@ xl_encap_90xB(sc, c, m_head) */ map = sc->sc_tx_sparemap; d = c->xl_ptr; - d->xl_status = htole32(0); + d->xl_status = 0; d->xl_next = 0; if (bus_dmamap_load_mbuf(sc->sc_dmat, map, -- cgit v1.2.3