mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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
This commit is contained in:
parent
7d1ab86691
commit
54361f9020
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue