risc-v: 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-14 17:25:50 +00:00
parent d9ca4bc073
commit b93c97c14a

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