From b93c97c14ab6502b86085fdadc5ee8aa7ec7348c Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Thu, 14 Apr 2016 17:25:50 +0000 Subject: [PATCH] risc-v: for pointers replace 0 with NULL. These are mostly cosmetical, no functional change. Found with devel/coccinelle. --- sys/riscv/riscv/nexus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/riscv/riscv/nexus.c b/sys/riscv/riscv/nexus.c index a4ced760eea..75e16b881f1 100644 --- a/sys/riscv/riscv/nexus.c +++ b/sys/riscv/riscv/nexus.c @@ -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);