diff options
Diffstat (limited to 'sys/pci/if_sk.c')
-rw-r--r-- | sys/pci/if_sk.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index 8604209..5ba23f5 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/if_sk.c @@ -672,11 +672,8 @@ static int sk_newbuf(sc_if, c, m) caddr_t *buf = NULL; MGETHDR(m_new, M_DONTWAIT, MT_DATA); - if (m_new == NULL) { - printf("sk%d: no memory for rx list -- " - "packet dropped!\n", sc_if->sk_unit); + if (m_new == NULL) return(ENOBUFS); - } /* Allocate the jumbo buffer */ buf = sk_jalloc(sc_if); |