summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
commit470f59fa3f11b7317fc5907cfef6043f2104bcc6 (patch)
tree50aedec19587d2927b807e6719da0022055c56df /sys/arch/sgi
parent1d2ed5cc87538f3c2a6389c586a609a8b73610b7 (diff)
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/dev/mkbc.c6
-rw-r--r--sys/arch/sgi/sgi/sginode.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sgi/dev/mkbc.c b/sys/arch/sgi/dev/mkbc.c
index a4878ef000d..71576b9ca53 100644
--- a/sys/arch/sgi/dev/mkbc.c
+++ b/sys/arch/sgi/dev/mkbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkbc.c,v 1.10 2010/12/03 18:29:56 shadchin Exp $ */
+/* $OpenBSD: mkbc.c,v 1.11 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2006, 2007, Joel Sing
@@ -267,8 +267,8 @@ mkbc_attach(struct device *parent, struct device *self, void *aux)
t = malloc(sizeof(struct pckbc_internal), M_DEVBUF,
M_WAITOK | M_ZERO);
t->t_iot = msc->iot;
- t->t_ioh_d = NULL;
- t->t_ioh_c = NULL;
+ t->t_ioh_d = 0;
+ t->t_ioh_c = 0;
t->t_addr = maa->maa_baseaddr;
t->t_sc = (struct pckbc_softc *)msc;
sc->id = t;
diff --git a/sys/arch/sgi/sgi/sginode.c b/sys/arch/sgi/sgi/sginode.c
index 2c3a450794b..0d5fe0cb4b6 100644
--- a/sys/arch/sgi/sgi/sginode.c
+++ b/sys/arch/sgi/sgi/sginode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sginode.c,v 1.21 2011/04/03 22:34:54 miod Exp $ */
+/* $OpenBSD: sginode.c,v 1.22 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
*
@@ -406,7 +406,7 @@ kl_scan_node(int nasid, uint clss, int (*cb)(lboard_t *, void *), void *cbarg)
if ((*cb)(boardinfo, cbarg) != 0)
return 1;
}
- if (boardinfo->brd_next == NULL)
+ if (boardinfo->brd_next == 0)
break;
}