risc-v: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle.
This commit is contained in:
parent
d9ca4bc073
commit
b93c97c14a
@ -242,7 +242,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0)
|
||||
if (rv == NULL)
|
||||
return (NULL);
|
||||
|
||||
rman_set_rid(rv, *rid);
|
||||
|
Loading…
Reference in New Issue
Block a user