summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_ti.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_ti.c')
-rw-r--r--sys/pci/if_ti.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c
index 98b9b64..106f065 100644
--- a/sys/pci/if_ti.c
+++ b/sys/pci/if_ti.c
@@ -700,16 +700,11 @@ static int ti_newbuf_std(sc, i, m)
if (m == NULL) {
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
- if (m_new == NULL) {
- printf("ti%d: mbuf allocation failed "
- "-- packet dropped!\n", sc->ti_unit);
+ if (m_new == NULL)
return(ENOBUFS);
- }
MCLGET(m_new, M_DONTWAIT);
if (!(m_new->m_flags & M_EXT)) {
- printf("ti%d: cluster allocation failed "
- "-- packet dropped!\n", sc->ti_unit);
m_freem(m_new);
return(ENOBUFS);
}
OpenPOWER on IntegriCloud