summaryrefslogtreecommitdiff
path: root/sys/arch/vax
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/vax
parent889970baeca780212c1953e389cafda53b2d471e (diff)
test mbuf pointers against NULL not 0
ok krw@ miod@
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/if/if_de.c4
-rw-r--r--sys/arch/vax/if/if_qe.c4
-rw-r--r--sys/arch/vax/if/sgec.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/vax/if/if_de.c b/sys/arch/vax/if/if_de.c
index 832e018025a..cc895ab8c8e 100644
--- a/sys/arch/vax/if/if_de.c
+++ b/sys/arch/vax/if/if_de.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_de.c,v 1.27 2015/02/01 15:27:11 miod Exp $ */
+/* $OpenBSD: if_de.c,v 1.28 2015/05/13 10:42:46 jsg Exp $ */
/* $NetBSD: if_de.c,v 1.27 1997/04/19 15:02:29 ragge Exp $ */
/*
@@ -352,7 +352,7 @@ destart(ifp)
return;
for (nxmit = ds->ds_nxmit; nxmit < NXMT; nxmit++) {
IF_DEQUEUE(&ds->ds_if.if_snd, m);
- if (m == 0)
+ if (m == NULL)
break;
rp = &ds->ds_xrent[ds->ds_xfree];
if (rp->r_flags & XFLG_OWN)
diff --git a/sys/arch/vax/if/if_qe.c b/sys/arch/vax/if/if_qe.c
index 3033563c04c..fae242274a7 100644
--- a/sys/arch/vax/if/if_qe.c
+++ b/sys/arch/vax/if/if_qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_qe.c,v 1.31 2015/04/07 14:02:51 mpi Exp $ */
+/* $OpenBSD: if_qe.c,v 1.32 2015/05/13 10:42:46 jsg Exp $ */
/* $NetBSD: if_qe.c,v 1.51 2002/06/08 12:28:37 ragge Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -440,7 +440,7 @@ qestart(struct ifnet *ifp)
}
idx = sc->sc_nexttx;
IFQ_POLL(&ifp->if_snd, m);
- if (m == 0)
+ if (m == NULL)
goto out;
/*
* Count number of mbufs in chain.
diff --git a/sys/arch/vax/if/sgec.c b/sys/arch/vax/if/sgec.c
index 22ce74a10b5..4c459bdee94 100644
--- a/sys/arch/vax/if/sgec.c
+++ b/sys/arch/vax/if/sgec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sgec.c,v 1.27 2015/05/02 14:33:19 jsg Exp $ */
+/* $OpenBSD: sgec.c,v 1.28 2015/05/13 10:42:46 jsg Exp $ */
/* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -385,7 +385,7 @@ zestart(ifp)
}
idx = sc->sc_nexttx;
IF_DEQUEUE(&sc->sc_if.if_snd, m);
- if (m == 0)
+ if (m == NULL)
goto out;
/*
* Count number of mbufs in chain.