summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sis.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-09 21:52:18 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-09 21:52:18 +0000
commit7fad68d47f4ac998e91c7e58349abeec9702f6b5 (patch)
tree268da1ecebb6894e153c9913f891c6e3734600e3 /sys/dev/pci/if_sis.c
parent3c4ed6b6eb0a41b134afaea1ed7bb00f7bb08eed (diff)
do not whine if we cannot get mbufs. the countless printfd makes the machine
crawl under mbuf starvation, making the situationmuch worse, and don't make sense in the first place. ok tdeval@ millert@ beck@ deraadt@
Diffstat (limited to 'sys/dev/pci/if_sis.c')
-rw-r--r--sys/dev/pci/if_sis.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c
index 6bbe959e9a4..6829c1b85f3 100644
--- a/sys/dev/pci/if_sis.c
+++ b/sys/dev/pci/if_sis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sis.c,v 1.36 2004/01/01 11:44:49 markus Exp $ */
+/* $OpenBSD: if_sis.c,v 1.37 2004/04/09 21:52:17 henning Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -1249,16 +1249,11 @@ int sis_newbuf(sc, c, m)
if (m == NULL) {
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
- if (m_new == NULL) {
- printf("%s: no memory for rx list -- packet dropped!\n",
- sc->sc_dev.dv_xname);
+ if (m_new == NULL)
return(ENOBUFS);
- }
MCLGET(m_new, M_DONTWAIT);
if (!(m_new->m_flags & M_EXT)) {
- printf("%s: no memory for rx list -- packet dropped!\n",
- sc->sc_dev.dv_xname);
m_freem(m_new);
return(ENOBUFS);
}