diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-15 12:17:34 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-15 12:17:34 +0000 |
commit | 2e90b92e02690982a14c95510860ba560db7a06f (patch) | |
tree | c85fb2a6890ae9d96e4062adc9e2c4b6696917fe /sys/sparc64/ebus | |
parent | 1ca6045195d4bb8416ee57ebfc428440eff9d83b (diff) | |
download | FreeBSD-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.c | 2 |
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); } |