aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-04-26 21:19:28 +0000
committerMark Johnston <markj@FreeBSD.org>2023-05-26 19:38:08 +0000
commitca4c7859009549975229d854888231e48938035e (patch)
tree91a3d74a8f5626a61fd239f078891f01023f4a3d /sys/arm
parent44866dfb44178c86b6f380eb713a8f07c3d3b566 (diff)
downloadsrc-ca4c7859009549975229d854888231e48938035e.tar.gz
src-ca4c7859009549975229d854888231e48938035e.zip
nexus: Consistently return a pointer in failure paths
No functional change intended. MFC after: 1 week
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/nexus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/arm/nexus.c b/sys/arm/arm/nexus.c
index 48e766b0cc62..430373d3679f 100644
--- a/sys/arm/arm/nexus.c
+++ b/sys/arm/arm/nexus.c
@@ -256,7 +256,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
if (needactivate) {
if (bus_activate_resource(child, type, *rid, rv)) {
rman_release_resource(rv);
- return (0);
+ return (NULL);
}
}