diff options
Diffstat (limited to 'sys/pci/if_pcn.c')
-rw-r--r-- | sys/pci/if_pcn.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/pci/if_pcn.c b/sys/pci/if_pcn.c index 580f5e9..6a177c6 100644 --- a/sys/pci/if_pcn.c +++ b/sys/pci/if_pcn.c @@ -757,16 +757,11 @@ static int pcn_newbuf(sc, idx, m) if (m == NULL) { MGETHDR(m_new, M_DONTWAIT, MT_DATA); - if (m_new == NULL) { - printf("pcn%d: no memory for rx list " - "-- packet dropped!\n", sc->pcn_unit); + if (m_new == NULL) return(ENOBUFS); - } MCLGET(m_new, M_DONTWAIT); if (!(m_new->m_flags & M_EXT)) { - printf("pcn%d: no memory for rx list " - "-- packet dropped!\n", sc->pcn_unit); m_freem(m_new); return(ENOBUFS); } |