risc-v: for pointers replace 0 with NULL.

These are mostly cosmetical, no functional change.

Found with devel/coccinelle.
This commit is contained in:
pfg 2016-04-14 17:25:50 +00:00
parent e4188afba8
commit 9b3c198544

View File

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