From nobody Sat Jan 13 16:46:23 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 4TC46m1k1jz569Pt; Sat, 13 Jan 2024 16:46:24 +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 4TC46m1CRwz4dSj; Sat, 13 Jan 2024 16:46:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705164384; 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=iwQ294SHjbBQZdsCaRIVo8l71a2YAG+2/o5QM+bNw/w=; b=VK3CbJNRIzOJpa3Y2I8cywMT2SEF+4YNGuvFHgAx/18qswmgbfNcZh2GTCnaMAzL6ZWmi2 YOvX+810JoJQ38ACryutmKBvLSDSIL2ctaStnu+JEI6uVYNA++GXd4Waz1+IyAlzyvI2vd QMV2KCd2f7Gv3krh5jlxEaUMnCteKayhFWinBT/1H2e5xInwf0oPt+8e1hIHp3ASHMHTjB T04b+C+eco/E1w9PDcCMJ1kAvZl6WK1PKmFJmVDIE3LXiMJW/LOb1Xq25G1jhFjPRD/LLx VQLp18YC+XQ26uAeliZviBRU1oai3087WkASFxiuevPkpkB586jD6AQlOvSI8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705164384; 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=iwQ294SHjbBQZdsCaRIVo8l71a2YAG+2/o5QM+bNw/w=; b=Kzpmo4qWuH0MDfgFrdJd2aUCtU3UPBvRP+k84HGthJykEUzK/lSBjk9MYtrGUZdGQFm0eo 0Imzc1sJDQ2MsUpof1oxi1ViZHM3cq5OMz5cpBg+q3k1+a5gFd6zbWcM1UtaEb97anWX9w I6srxwfXbci/IrGAjfoCiKn+VaxuZtuXzp/zucgFeoKnJhziLqbJN3QfWW1oN5JgAKlAr4 K/VD5SlHwxzKisyNW+ZXUA+bgn2+asVgSsOCGTQm1OYT4AX8jvdRIVOeeNZiBautMndWXP xbrtHM91DhWepUlpo6TKtPpB24iTTExQ8gJghsBB9FpI7V9/tXr14eoMVSyBHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705164384; a=rsa-sha256; cv=none; b=H4lNP8EnG7faBHGKZnmMGz8JQX8m8LUHYZPOzZ39oLuX7yj5ZHwaraA55GwTzV986g7Xy4 oDWMxVwoyS3UIHhRyrtbRSBx7VT1RSW/FE0YMdwzvTgsjb5hv182I5/1t0Tyn0dVaYtYEg EhNjQQojYOM5KD18Pm0hwTA7ETMBPbZYtnAmrSIfsJWzde2iKkNYos2AiOilQJCUzsughB fpYffoFaNYvACFQOJ3OW0gIQRZA1clzAVa+JsXDt3DMcPoxRJkNBe0a0cUKcLhTQUagHIb ZSzNAlhYKFncKIGEWEe32fZh7JPmgbf6XsKpv7J0eizHXhd8ZV65yDN7emhVLg== 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 4TC46m08G6zf0h; Sat, 13 Jan 2024 16:46:24 +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 40DGkNe8006441; Sat, 13 Jan 2024 16:46:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40DGkNbp006438; Sat, 13 Jan 2024 16:46:23 GMT (envelope-from git) Date: Sat, 13 Jan 2024 16:46:23 GMT Message-Id: <202401131646.40DGkNbp006438@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 69748e62e82a - main - 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/main X-Git-Reftype: branch X-Git-Commit: 69748e62e82a1f5ef77fd3e1b0c9d7e6a89d22b2 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=69748e62e82a1f5ef77fd3e1b0c9d7e6a89d22b2 commit 69748e62e82a1f5ef77fd3e1b0c9d7e6a89d22b2 Author: Konstantin Belousov AuthorDate: 2024-01-13 01:44:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-13 16:45:53 +0000 vm/vm_object.c: minor cleanup Remove sys/cdefs.h and sys/socket.h includes. Order sys/ includes alphabetically. Do not check for NULL before free(). Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week DIfferential revision: https://reviews.freebsd.org/D43444 --- 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 c141b410edf2..1dd6878cf4ab 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -62,10 +62,8 @@ * Virtual memory object module. */ -#include #include "opt_vm.h" -#include #include #include #include @@ -74,19 +72,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 @@ -2612,8 +2609,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)