summaryrefslogtreecommitdiffstats
path: root/sys/arm64
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-15 14:30:40 +0000
committerpfg <pfg@FreeBSD.org>2016-04-15 14:30:40 +0000
commit20566177418590640449d2b402ddaa8e307b265e (patch)
tree611610be5f693b33447a60ed3d0c42a592f4de0f /sys/arm64
parent09cc69da94ad26d463004506b1bb2db36973a6da (diff)
downloadFreeBSD-src-20566177418590640449d2b402ddaa8e307b265e.zip
FreeBSD-src-20566177418590640449d2b402ddaa8e307b265e.tar.gz
arm: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle.
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/nexus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/nexus.c b/sys/arm64/arm64/nexus.c
index f48a7aa..ec71409 100644
--- a/sys/arm64/arm64/nexus.c
+++ b/sys/arm64/arm64/nexus.c
@@ -250,7 +250,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);
OpenPOWER on IntegriCloud