Date: Wed, 29 Nov 2017 20:15:29 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r326372 - user/jeff/numa/sys/vm Message-ID: <201711292015.vATKFTmM066031@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jeff Date: Wed Nov 29 20:15:29 2017 New Revision: 326372 URL: https://svnweb.freebsd.org/changeset/base/326372 Log: Correct a return value. Remove unnecessary parentheses. Modified: user/jeff/numa/sys/vm/vm_kern.c Modified: user/jeff/numa/sys/vm/vm_kern.c ============================================================================== --- user/jeff/numa/sys/vm/vm_kern.c Wed Nov 29 19:47:09 2017 (r326371) +++ user/jeff/numa/sys/vm/vm_kern.c Wed Nov 29 20:15:29 2017 (r326372) @@ -232,7 +232,7 @@ kmem_alloc_attr(vmem_t *vmem, vm_size_t size, int flag wait = flags & M_WAITOK; flags &= ~M_WAITOK; flags |= M_NOWAIT; - while ((vm_domain_iterator_run(&vi, &domain)) == 0) { + while (vm_domain_iterator_run(&vi, &domain) == 0) { if (vm_domain_iterator_isdone(&vi) && wait) { flags |= wait; flags &= ~M_NOWAIT; @@ -328,7 +328,7 @@ kmem_alloc_contig(struct vmem *vmem, vm_size_t size, i wait = flags & M_WAITOK; flags &= ~M_WAITOK; flags |= M_NOWAIT; - while ((vm_domain_iterator_run(&vi, &domain)) == 0) { + while (vm_domain_iterator_run(&vi, &domain) == 0) { if (vm_domain_iterator_isdone(&vi) && wait) { flags |= wait; flags &= ~M_NOWAIT; @@ -419,7 +419,7 @@ kmem_malloc(struct vmem *vmem, vm_size_t size, int fla wait = flags & M_WAITOK; flags &= ~M_WAITOK; flags |= M_NOWAIT; - while ((vm_domain_iterator_run(&vi, &domain)) == 0) { + while (vm_domain_iterator_run(&vi, &domain) == 0) { if (vm_domain_iterator_isdone(&vi) && wait) { flags |= wait; flags &= ~M_NOWAIT; @@ -504,7 +504,7 @@ kmem_back(vm_object_t object, vm_offset_t addr, vm_siz wait = flags & M_WAITOK; flags &= ~M_WAITOK; flags |= M_NOWAIT; - while ((vm_domain_iterator_run(&vi, &domain)) == 0) { + while (vm_domain_iterator_run(&vi, &domain) == 0) { if (vm_domain_iterator_isdone(&vi) && wait) { flags |= wait; flags &= ~M_NOWAIT; @@ -515,7 +515,7 @@ kmem_back(vm_object_t object, vm_offset_t addr, vm_siz } vm_policy_iterator_finish(&vi); - return (addr); + return (ret); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711292015.vATKFTmM066031>