summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-05-13 10:42:48 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-05-13 10:42:48 +0000
commit752beb6c0c0e7329a60fd312719cd7a410162aa1 (patch)
tree1f811530e56b8d078e3a88c20203c6b15af4da30 /sys/arch/macppc/dev
parent889970baeca780212c1953e389cafda53b2d471e (diff)
test mbuf pointers against NULL not 0
ok krw@ miod@
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/if_bm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/if_bm.c b/sys/arch/macppc/dev/if_bm.c
index 0e290d226ec..45f4da2146a 100644
--- a/sys/arch/macppc/dev/if_bm.c
+++ b/sys/arch/macppc/dev/if_bm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bm.c,v 1.31 2015/02/09 03:09:57 dlg Exp $ */
+/* $OpenBSD: if_bm.c,v 1.32 2015/05/13 10:42:46 jsg Exp $ */
/* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
/*-
@@ -618,7 +618,7 @@ bmac_start(struct ifnet *ifp)
return;
IFQ_DEQUEUE(&ifp->if_snd, m);
- if (m == 0)
+ if (m == NULL)
break;
#if NBPFILTER > 0
/*
@@ -685,7 +685,7 @@ bmac_get(struct bmac_softc *sc, caddr_t pkt, int totlen)
int len;
MGETHDR(m, M_DONTWAIT, MT_DATA);
- if (m == 0)
+ if (m == NULL)
return (0);
m->m_pkthdr.len = totlen;
len = MHLEN;
@@ -695,7 +695,7 @@ bmac_get(struct bmac_softc *sc, caddr_t pkt, int totlen)
while (totlen > 0) {
if (top) {
MGET(m, M_DONTWAIT, MT_DATA);
- if (m == 0) {
+ if (m == NULL) {
m_freem(top);
return (0);
}