diff options
author | 2005-07-25 00:49:43 +0000 | |
---|---|---|
committer | 2005-07-25 00:49:43 +0000 | |
commit | c817c11c9c3a8a2648d6c162723f80ed49f99811 (patch) | |
tree | e431a057b02672d225172b710cdcdd42e0091d2f | |
parent | - mbuf external storage is of (caddr_t), not (caddr_t *). (diff) | |
download | wireguard-openbsd-c817c11c9c3a8a2648d6c162723f80ed49f99811.tar.xz wireguard-openbsd-c817c11c9c3a8a2648d6c162723f80ed49f99811.zip |
don't bother with printf in *_jalloc()
-rw-r--r-- | sys/dev/pci/if_bge.c | 9 | ||||
-rw-r--r-- | sys/dev/pci/if_nge.c | 10 | ||||
-rw-r--r-- | sys/dev/pci/if_sk.c | 7 | ||||
-rw-r--r-- | sys/dev/pci/if_ti.c | 10 |
4 files changed, 11 insertions, 25 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 80ba724afc9..44881d14bdc 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.77 2005/07/20 01:22:25 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.78 2005/07/25 00:49:43 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -584,11 +584,8 @@ bge_jalloc(sc) entry = SLIST_FIRST(&sc->bge_jfree_listhead); - if (entry == NULL) { - DPRINTFN(1,("%s: no free jumbo buffers\n", - sc->bge_dev.dv_xname)); - return(NULL); - } + if (entry == NULL) + return (NULL); SLIST_REMOVE_HEAD(&sc->bge_jfree_listhead, jpool_entries); SLIST_INSERT_HEAD(&sc->bge_jinuse_listhead, entry, jpool_entries); diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c index d978213dab9..1254de3a0dd 100644 --- a/sys/dev/pci/if_nge.c +++ b/sys/dev/pci/if_nge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nge.c,v 1.41 2005/07/09 23:18:53 brad Exp $ */ +/* $OpenBSD: if_nge.c,v 1.42 2005/07/25 00:49:44 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -1204,12 +1204,8 @@ nge_jalloc(sc) entry = LIST_FIRST(&sc->nge_jfree_listhead); - if (entry == NULL) { -#ifdef NGE_VERBOSE - printf("%s: no free jumbo buffers\n", sc->sc_dv.dv_xname); -#endif - return(NULL); - } + if (entry == NULL) + return (NULL); LIST_REMOVE(entry, jpool_entries); LIST_INSERT_HEAD(&sc->nge_jinuse_listhead, entry, jpool_entries); diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index c3cc42faaeb..f775a182466 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.76 2005/07/24 20:18:17 fgsch Exp $ */ +/* $OpenBSD: if_sk.c,v 1.77 2005/07/25 00:49:43 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -928,11 +928,8 @@ sk_jalloc(struct sk_if_softc *sc_if) entry = LIST_FIRST(&sc_if->sk_jfree_listhead); - if (entry == NULL) { - DPRINTF(("%s: no free jumbo buffers\n", - sc_if->sk_dev.dv_xname)); + if (entry == NULL) return (NULL); - } LIST_REMOVE(entry, jpool_entries); LIST_INSERT_HEAD(&sc_if->sk_jinuse_listhead, entry, jpool_entries); diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index 687cfaf1211..5a53de00b2a 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ti.c,v 1.69 2005/07/25 00:41:24 brad Exp $ */ +/* $OpenBSD: if_ti.c,v 1.70 2005/07/25 00:49:43 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -671,12 +671,8 @@ void *ti_jalloc(sc) entry = SLIST_FIRST(&sc->ti_jfree_listhead); - if (entry == NULL) { -#ifdef TI_VERBOSE - printf("%s: no free jumbo buffers\n", sc->sc_dv.dv_xname); -#endif - return(NULL); - } + if (entry == NULL) + return (NULL); SLIST_REMOVE_HEAD(&sc->ti_jfree_listhead, jpool_entries); SLIST_INSERT_HEAD(&sc->ti_jinuse_listhead, entry, jpool_entries); |