From bf8e8a6e8f0bd9165109f0a258730dd242299815 Mon Sep 17 00:00:00 2001 From: alfred Date: Tue, 21 Jan 2003 08:56:16 +0000 Subject: Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. --- sys/dev/cnw/if_cnw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/cnw') diff --git a/sys/dev/cnw/if_cnw.c b/sys/dev/cnw/if_cnw.c index 84bdced..7043fff 100644 --- a/sys/dev/cnw/if_cnw.c +++ b/sys/dev/cnw/if_cnw.c @@ -941,7 +941,7 @@ cnw_read(sc) bufbytes = 0; bufptr = 0; /* XXX make gcc happy */ - MGETHDR(m, M_DONTWAIT, MT_DATA); + MGETHDR(m, M_NOWAIT, MT_DATA); if (m == 0) return (0); #if !defined(__FreeBSD__) @@ -956,7 +956,7 @@ cnw_read(sc) while (totbytes > 0) { if (top) { - MGET(m, M_DONTWAIT, MT_DATA); + MGET(m, M_NOWAIT, MT_DATA); if (m == 0) { m_freem(top); return (0); @@ -964,7 +964,7 @@ cnw_read(sc) mbytes = MLEN; } if (totbytes >= MINCLSIZE) { - MCLGET(m, M_DONTWAIT); + MCLGET(m, M_NOWAIT); if ((m->m_flags & M_EXT) == 0) { m_free(m); m_freem(top); -- cgit v1.1