From owner-svn-src-user@freebsd.org Wed Nov 29 20:15:30 2017 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 729AEDBA9C9 for ; Wed, 29 Nov 2017 20:15:30 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2139C393B; Wed, 29 Nov 2017 20:15:30 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATKFTUu066032; Wed, 29 Nov 2017 20:15:29 GMT (envelope-from jeff@FreeBSD.org) Received: (from jeff@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATKFTmM066031; Wed, 29 Nov 2017 20:15:29 GMT (envelope-from jeff@FreeBSD.org) Message-Id: <201711292015.vATKFTmM066031@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jeff set sender to jeff@FreeBSD.org using -f From: Jeff Roberson Date: Wed, 29 Nov 2017 20:15:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r326372 - user/jeff/numa/sys/vm X-SVN-Group: user X-SVN-Commit-Author: jeff X-SVN-Commit-Paths: user/jeff/numa/sys/vm X-SVN-Commit-Revision: 326372 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 20:15:30 -0000 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); } /*