git: edef4d715eea - stable/13 - vm/vm_object.c: minor cleanup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Jan 2024 00:33:15 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=edef4d715eead740df4278cea9822aa29254a2a0 commit edef4d715eead740df4278cea9822aa29254a2a0 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-01-13 01:44:39 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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 <sys/cdefs.h> #include "opt_vm.h" -#include <sys/param.h> #include <sys/systm.h> #include <sys/blockcount.h> #include <sys/cpuset.h> @@ -76,19 +74,18 @@ #include <sys/mman.h> #include <sys/mount.h> #include <sys/kernel.h> -#include <sys/pctrie.h> -#include <sys/sysctl.h> #include <sys/mutex.h> -#include <sys/proc.h> /* for curproc, pageproc */ +#include <sys/pctrie.h> +#include <sys/proc.h> #include <sys/refcount.h> -#include <sys/socket.h> +#include <sys/sx.h> +#include <sys/sysctl.h> #include <sys/resourcevar.h> #include <sys/refcount.h> #include <sys/rwlock.h> #include <sys/user.h> #include <sys/vnode.h> #include <sys/vmmeter.h> -#include <sys/sx.h> #include <vm/vm.h> #include <vm/vm_param.h> @@ -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)