aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vr
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-12-14 05:56:35 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-12-14 05:56:35 +0000
commit268cc039050abb8bbba3efed73719170838a3e66 (patch)
tree1eb55d37853a849027d5e26a1610989f6a3945e2 /sys/dev/vr
parentd8bddaa85dc46872465ad1b9eb4d663407a24bfb (diff)
Notes
Diffstat (limited to 'sys/dev/vr')
-rw-r--r--sys/dev/vr/if_vr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index f037294222110..0956396835acb 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.c
@@ -924,16 +924,11 @@ static int vr_newbuf(sc, c, m)
if (m == NULL) {
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
- if (m_new == NULL) {
- printf("vr%d: no memory for rx list "
- "-- packet dropped!\n", sc->vr_unit);
+ if (m_new == NULL)
return(ENOBUFS);
- }
MCLGET(m_new, M_DONTWAIT);
if (!(m_new->m_flags & M_EXT)) {
- printf("vr%d: no memory for rx list "
- "-- packet dropped!\n", sc->vr_unit);
m_freem(m_new);
return(ENOBUFS);
}