From: thib Date: Tue, 15 Jul 2008 12:10:48 +0000 (+0000) Subject: theres no need too m_adj() the mbuf by 8bytes (u_int64_t) in X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=292b222ba2a12894b7d968e2d17b5ed7636707a3;p=openbsd 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@ --- 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);