svn commit: r282096 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Mon Apr 27 15:16:52 UTC 2015
Author: andrew
Date: Mon Apr 27 15:16:51 2015
New Revision: 282096
URL: https://svnweb.freebsd.org/changeset/base/282096
Log:
Return NULL on failure from nexus_alloc_resource as it reutrns a pointer.
Modified:
head/sys/arm64/arm64/nexus.c
Modified: head/sys/arm64/arm64/nexus.c
==============================================================================
--- head/sys/arm64/arm64/nexus.c Mon Apr 27 15:00:16 2015 (r282095)
+++ head/sys/arm64/arm64/nexus.c Mon Apr 27 15:16:51 2015 (r282096)
@@ -208,12 +208,12 @@ nexus_alloc_resource(device_t bus, devic
break;
default:
- return (0);
+ return (NULL);
}
rv = rman_reserve_resource(rm, start, end, count, flags, child);
if (rv == 0)
- return (0);
+ return (NULL);
rman_set_rid(rv, *rid);
rman_set_bushandle(rv, rman_get_start(rv));
@@ -221,7 +221,7 @@ nexus_alloc_resource(device_t bus, devic
if (needactivate) {
if (bus_activate_resource(child, type, *rid, rv)) {
rman_release_resource(rv);
- return (0);
+ return (NULL);
}
}
More information about the svn-src-all
mailing list