git: 54361f9020bf - main - uma: Use the correct type for a return value
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Mar 2022 19:59:39 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=54361f9020bf4d57fd700033476561f9c88942de commit 54361f9020bf4d57fd700033476561f9c88942de Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-03-30 19:42:05 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-03-30 19:42:05 +0000 uma: Use the correct type for a return value zone_alloc_bucket() returns a pointer, not a bool. MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/vm/uma_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 77182e460a54..f179e87d87ac 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -4263,7 +4263,7 @@ zone_alloc_bucket(uma_zone_t zone, void *udata, int domain, int flags) else maxbucket = zone->uz_bucket_size; if (maxbucket == 0) - return (false); + return (NULL); /* Don't wait for buckets, preserve caller's NOVM setting. */ bucket = bucket_alloc(zone, udata, M_NOWAIT | (flags & M_NOVM));