From nobody Sat Jan 20 00:33:15 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 4TGyBg5KXMz57lh2; Sat, 20 Jan 2024 00:33:15 +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 4TGyBg4Wbdz4RnQ; Sat, 20 Jan 2024 00:33:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705710795; 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=+gUA77kRkwHJ7rgF1sZmRorleP7qlmutqSIYpcXnT+E=; b=UbuopKp2vHTyVYyjoaY7uAFEpfoHnYe7pE674K9zixSJtrouoywIsWDJM8xlP86X9Eexu6 K3eLUxt4oiu7VtcHHbMDPILyn2qjh1nUt1f6bxnGsXj5F7JVRVyMZih+UiTP0d/SDspthK pva0PuMOMbJQRn0aaLmmITLmTpE04t+qsJ6b7pUazphGyzaIPoEvKz/PMV1sdkoHNyBqJO feJpQ/QdN/mrOM5PHf1eNdP8VWeFyjSucIznph151P/OquGRUSi9lSxX9tzUt6nIBkd5ny 8Z9WDcyAI/2sfO9P7cweb3vr7eoz+S9j9Dy+0l7roE9ZPv6bRHjYm0Y1yL6O8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705710795; 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=+gUA77kRkwHJ7rgF1sZmRorleP7qlmutqSIYpcXnT+E=; b=DAxbHQv61wSFSTAOmNkfITeKnvyY0a9SAKbndE7P/GRuKLDcKegTI9GScvrchFHK62b1BE UxxC4dpYj1Jg9WcoNyNd7u5bhMDDhK3AZy+tsfJrGDwKV/gr5TLh4K+O4tZLASrKEP1p10 sFXWudIosSRSm04PSmbdZ3HdC0eNVB5Uz6UnyEfE7czuy3aSvJwTv8MlKMcbKKlzJWf3jf No3kLkQNG5Ps/kP+CcpcJm91qFB4KH7yqEvU0tv0gOKOBMDqc1eMfE/tzGhXryyNQZcBn6 8BP7KDyG3XKxtyp048eUTgA0s1QiRIuSuL0YnXtXsACCJ6No8o/CpyYq5ZxF8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705710795; a=rsa-sha256; cv=none; b=wCmrl+FdzIDkJD8NiqLoKIYV2zpOc0+TyXZfAgpKVf5Kher1ODokxgIT0NtvIbWNDEDTIW HIOAx8on0Q9yhb3lccONeN4PXGBYGhg8RmXZ7vHtcPr27UwtTZbjJ5YzwnTn+nurBlzJGU qWh7eAQBc2Z3vcz974Iqmzt+oH9aNb4cKFQX+XVOzr/zwozg/2gzAcnfTYAyBiRafusj36 nVmY1Mg7davFPq0eDOtNlhlPDd6+yV6r2pGg4Ur/HEKU9f9Fm1Kp7eMevvE5bPmdwG+SA1 RquhVZ8Fyxvxhm/sqfV4igsQCNCitQo2Xx31XORn251WROxozIG0n1ImInjbUg== 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 4TGyBg3XgWz1CbG; Sat, 20 Jan 2024 00:33:15 +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 40K0XFip036788; Sat, 20 Jan 2024 00:33:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40K0XFBd036785; Sat, 20 Jan 2024 00:33:15 GMT (envelope-from git) Date: Sat, 20 Jan 2024 00:33:15 GMT Message-Id: <202401200033.40K0XFBd036785@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: edef4d715eea - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: edef4d715eead740df4278cea9822aa29254a2a0 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=edef4d715eead740df4278cea9822aa29254a2a0 commit edef4d715eead740df4278cea9822aa29254a2a0 Author: Konstantin Belousov AuthorDate: 2024-01-13 01:44:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-20 00:32:53 +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 675ac2901c6c..34d2de1ee875 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 @@ -2657,8 +2654,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)