From 292b222ba2a12894b7d968e2d17b5ed7636707a3 Mon Sep 17 00:00:00 2001 From: thib Date: Tue, 15 Jul 2008 12:10:48 +0000 Subject: [PATCH] theres no need too m_adj() the mbuf by 8bytes (u_int64_t) in sis_newbuf(), so remove the call. ok and lots of prodding dlg@, brad@ --- sys/dev/pci/if_sis.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 685dc5c3970..f2a366009e5 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.79 2008/07/10 18:14:59 thib Exp $ */ +/* $OpenBSD: if_sis.c,v 1.80 2008/07/15 12:10:48 thib Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul . All rights reserved. @@ -1258,8 +1258,6 @@ sis_newbuf(struct sis_softc *sc, struct sis_desc *c, struct mbuf *m) m_new->m_len = m_new->m_pkthdr.len = MCLBYTES; - m_adj(m_new, sizeof(u_int64_t)); - if (bus_dmamap_load_mbuf(sc->sc_dmat, sc->sc_rx_sparemap, m_new, BUS_DMA_NOWAIT)) { m_freem(m_new); -- 2.20.1