sparc64: for pointers replace 0 with NULL.

These are mostly cosmetical, no functional change.

Found with devel/coccinelle.
This commit is contained in:
Pedro F. Giffuni 2016-04-15 12:17:34 +00:00
parent d4a2eaef39
commit 8806325ade

View File

@ -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);
}