summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_sf.c')
-rw-r--r--sys/pci/if_sf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c
index 487b48f..8ebc2f5b 100644
--- a/sys/pci/if_sf.c
+++ b/sys/pci/if_sf.c
@@ -908,16 +908,11 @@ static int sf_newbuf(sc, c, m)
if (m == NULL) {
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
- if (m_new == NULL) {
- printf("sf%d: no memory for rx list -- "
- "packet dropped!\n", sc->sf_unit);
+ if (m_new == NULL)
return(ENOBUFS);
- }
MCLGET(m_new, M_DONTWAIT);
if (!(m_new->m_flags & M_EXT)) {
- printf("sf%d: no memory for rx list -- "
- "packet dropped!\n", sc->sf_unit);
m_freem(m_new);
return(ENOBUFS);
}
OpenPOWER on IntegriCloud