summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/ebus
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-15 12:17:34 +0000
committerpfg <pfg@FreeBSD.org>2016-04-15 12:17:34 +0000
commit2e90b92e02690982a14c95510860ba560db7a06f (patch)
treec85fb2a6890ae9d96e4062adc9e2c4b6696917fe /sys/sparc64/ebus
parent1ca6045195d4bb8416ee57ebfc428440eff9d83b (diff)
downloadFreeBSD-src-2e90b92e02690982a14c95510860ba560db7a06f.zip
FreeBSD-src-2e90b92e02690982a14c95510860ba560db7a06f.tar.gz
sparc64: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle.
Diffstat (limited to 'sys/sparc64/ebus')
-rw-r--r--sys/sparc64/ebus/ebus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/ebus/ebus.c b/sys/sparc64/ebus/ebus.c
index 49abe18..55a90a3 100644
--- a/sys/sparc64/ebus/ebus.c
+++ b/sys/sparc64/ebus/ebus.c
@@ -370,7 +370,7 @@ ebus_pci_attach(device_t dev)
eri = &sc->sc_rinfo[i];
if (i < rnum)
rman_fini(&eri->eri_rman);
- if (eri->eri_res != 0) {
+ if (eri->eri_res != NULL) {
bus_release_resource(dev, eri->eri_rtype,
PCIR_BAR(rnum), eri->eri_res);
}
OpenPOWER on IntegriCloud