From nobody Sat Jan 20 00:32:43 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TGyB36FJtz57m83; Sat, 20 Jan 2024 00:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TGyB35hZKz4RBd; Sat, 20 Jan 2024 00:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705710763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0xGWh8OpuzPtmReqpfKm4bP1+n8Fqqu96BM7laNXOiY=; b=GuXasYyQdZi/1VURkOY1JmrFgNXhachxKGObEvnDrZv55iBWauOIBdl6OsQsaVz+Gq266X hJq85uN/P2q4GoOa5cSGn9RPHvZpYLzITtlpkSXJoecFd8uqZmyMcfRuKjhNWv7yHdbJ1b 4esNq331J3sBSqraUEWuxPwL+67ZiZdMD5zZtmdrc9ANlxGOutfyhDM7uGKWtX5+HyyFYY C/5XBlDvHNFBxaiZy4+nQfvqIHuYrMBuX+6aXeraTN9BB/1o5Qpq1T775+BqGx2YwvdvJF KHLhNA+18ED1rXGf7tN5fmIlaPSJUeCXi8BmsSz87KKLRUXFOIZ8ZA/kjcVd1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705710763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0xGWh8OpuzPtmReqpfKm4bP1+n8Fqqu96BM7laNXOiY=; b=TZDOPpfitzd0j8froxRECUUI0GfhyHiWFYZPYLO8xIZcv2qiQZ1BthTyTopFmohUPcpF1P vb/ij/svOmGGxqBZCiTyPlTg1MZVYu+3uqZL2j6WcLz+ZqMD6La+r/+E6LO13rKeJsIpsv wIc9YJnOCZPqWRvKfDwtSmmzwV5rI1MzRxFBRFq4knoLjOiUUbsnjzydmVxvFTHqoBbJyh coziTO8DRXRtvycdxx8EkotJIveVqBMk9UAHtRU9sdWt4uwLuNUnBscWcib8UteGWEtg2k oWFLO3cfUgHRarjsHtkcGgcHnOC8TDqUUFgWH4sFsXhrT/uNvZ02VbkPgg650Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705710763; a=rsa-sha256; cv=none; b=hjvwFwY8L7UdQv+nISHrFS5KssdglAroUZMDE8aJLlkFSshNMQsHykWt8RFuGShuU57gAJ R3UdDDnC2m2DoXVDlwBlbMt1HfqkJW2+DMmw6UyXc/QtQkejy/YVQ44RSsP2h3jpkjuLWs hTnia3jStsDGHuWMDQFOv+iSOpfahIgT7bQf695B/jTutkqY/lokviFUWveYEz50ZgWv5j DAkkN2t4R1ksxX9C6KAJYZKEj5YZ6EHwCKlgTlnTcmNpKgzAIi73OXz/fhiHfvWEQoNMJl jZqZUpVxfK3O4bsMKYz2OAS7Skb4DT59M8N/QSHL0XQeU+DWOPBa0Oy6On72Mw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TGyB34mB2z1CbF; Sat, 20 Jan 2024 00:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40K0WhfO036534; Sat, 20 Jan 2024 00:32:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40K0WhJN036531; Sat, 20 Jan 2024 00:32:43 GMT (envelope-from git) Date: Sat, 20 Jan 2024 00:32:43 GMT Message-Id: <202401200032.40K0WhJN036531@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: e23813c0fe03 - stable/14 - vm/vm_object.c: minor cleanup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e23813c0fe03e2949c425e6f60066b1cd048f535 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e23813c0fe03e2949c425e6f60066b1cd048f535 commit e23813c0fe03e2949c425e6f60066b1cd048f535 Author: Konstantin Belousov AuthorDate: 2024-01-13 01:44:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-20 00:32:20 +0000 vm/vm_object.c: minor cleanup (cherry picked from commit 69748e62e82a1f5ef77fd3e1b0c9d7e6a89d22b2) --- sys/vm/vm_object.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 59d03ba7a2ae..d3337c038113 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -64,10 +64,8 @@ * Virtual memory object module. */ -#include #include "opt_vm.h" -#include #include #include #include @@ -76,19 +74,18 @@ #include #include #include -#include -#include #include -#include /* for curproc, pageproc */ +#include +#include #include -#include +#include +#include #include #include #include #include #include #include -#include #include #include @@ -2613,8 +2610,7 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only) } strlcpy(kvo->kvo_path, fullpath, sizeof(kvo->kvo_path)); - if (freepath != NULL) - free(freepath, M_TEMP); + free(freepath, M_TEMP); /* Pack record size down */ kvo->kvo_structsize = offsetof(struct kinfo_vmobject, kvo_path)