summaryrefslogtreecommitdiff
path: root/sys/dev/ic/smc83c170.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-06-28 03:07:38 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-06-28 03:07:38 +0000
commit6720da1840d27ed9dc7259c956fad3452092008f (patch)
tree6be28bb522cfab2be4f503c6e49ada68aa4d3334 /sys/dev/ic/smc83c170.c
parent2aecf4952eca5dc5b5068807cf5e5e34e359591f (diff)
do not whine if we cannot get mbufs.
Diffstat (limited to 'sys/dev/ic/smc83c170.c')
-rw-r--r--sys/dev/ic/smc83c170.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/dev/ic/smc83c170.c b/sys/dev/ic/smc83c170.c
index 0e61a05fa05..f9182879174 100644
--- a/sys/dev/ic/smc83c170.c
+++ b/sys/dev/ic/smc83c170.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smc83c170.c,v 1.3 2005/05/10 03:28:24 brad Exp $ */
+/* $OpenBSD: smc83c170.c,v 1.4 2005/06/28 03:07:37 brad Exp $ */
/* $NetBSD: smc83c170.c,v 1.59 2005/02/27 00:27:02 perry Exp $ */
/*-
@@ -422,16 +422,11 @@ epic_start(struct ifnet *ifp)
bus_dmamap_unload(sc->sc_dmat, dmamap);
MGETHDR(m, M_DONTWAIT, MT_DATA);
- if (m == NULL) {
- printf("%s: unable to allocate Tx mbuf\n",
- sc->sc_dev.dv_xname);
+ if (m == NULL)
break;
- }
if (m0->m_pkthdr.len > MHLEN) {
MCLGET(m, M_DONTWAIT);
if ((m->m_flags & M_EXT) == 0) {
- printf("%s: unable to allocate Tx "
- "cluster\n", sc->sc_dev.dv_xname);
m_freem(m);
break;
}
@@ -440,11 +435,8 @@ epic_start(struct ifnet *ifp)
m->m_pkthdr.len = m->m_len = m0->m_pkthdr.len;
error = bus_dmamap_load_mbuf(sc->sc_dmat, dmamap,
m, BUS_DMA_WRITE|BUS_DMA_NOWAIT);
- if (error) {
- printf("%s: unable to load Tx buffer, "
- "error = %d\n", sc->sc_dev.dv_xname, error);
+ if (error)
break;
- }
}
IFQ_DEQUEUE(&ifp->if_snd, m0);
if (m != NULL) {