summaryrefslogtreecommitdiff
path: root/sys/arch/arm/xscale/pxa2x0_mmc.c
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/arm/xscale/pxa2x0_mmc.c
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/arm/xscale/pxa2x0_mmc.c')
-rw-r--r--sys/arch/arm/xscale/pxa2x0_mmc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_mmc.c b/sys/arch/arm/xscale/pxa2x0_mmc.c
index b8be421d9d4..6451c19677e 100644
--- a/sys/arch/arm/xscale/pxa2x0_mmc.c
+++ b/sys/arch/arm/xscale/pxa2x0_mmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_mmc.c,v 1.9 2009/09/03 21:40:29 marex Exp $ */
+/* $OpenBSD: pxa2x0_mmc.c,v 1.10 2011/04/07 15:30:15 miod Exp $ */
/*
* Copyright (c) 2007 Uwe Stuehler <uwe@openbsd.org>
@@ -203,9 +203,9 @@ fail:
pxa2x0_gpio_intr_disestablish(sc->sc_card_ih);
sc->sc_card_ih = NULL;
}
- if (sc->sc_ioh != NULL) {
+ if (sc->sc_ioh != 0) {
bus_space_unmap(sc->sc_iot, sc->sc_ioh, PXA2X0_MMC_SIZE);
- sc->sc_ioh = NULL;
+ sc->sc_ioh = 0;
}
pxa2x0_clkman_config(CKEN_MMC, 0);
}