git: e23813c0fe03 - stable/14 - vm/vm_object.c: minor cleanup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Jan 2024 00:32:43 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=e23813c0fe03e2949c425e6f60066b1cd048f535
commit e23813c0fe03e2949c425e6f60066b1cd048f535
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: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 <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>
@@ -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)