summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_xl.c')
-rw-r--r--sys/pci/if_xl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index 7378d83..aa7f4fc 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -1780,16 +1780,11 @@ static int xl_newbuf(sc, c)
struct mbuf *m_new = NULL;
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
- if (m_new == NULL) {
- printf("xl%d: no memory for rx list -- "
- "packet dropped!\n", sc->xl_unit);
+ if (m_new == NULL)
return(ENOBUFS);
- }
MCLGET(m_new, M_DONTWAIT);
if (!(m_new->m_flags & M_EXT)) {
- printf("xl%d: no memory for rx list -- "
- "packet dropped!\n", sc->xl_unit);
m_freem(m_new);
return(ENOBUFS);
}
OpenPOWER on IntegriCloud