sparc64: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle.
This commit is contained in:
parent
d4a2eaef39
commit
8806325ade
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user