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
e4188afba8
commit
9b3c198544
@ -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