From 8bb6b413f6d32a7db111246b5d2aa8a2b9e50734 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 5 Aug 2024 18:05:15 +0300 Subject: [PATCH] vm/vm_pageout.c: eliminate write-only variable PR: 280631 Fixes: acb4cb33d35838e3e86412202cd63d9021b21ce2 (non-debug builds) Sponsored by: The FreeBSD Foundation --- sys/vm/vm_pageout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 0d054da34866..f6c5e6291692 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -366,12 +366,10 @@ vm_pageout_flushable(vm_page_t m) static int vm_pageout_cluster(vm_page_t m) { - vm_object_t object; vm_page_t mc[2 * vm_pageout_page_count - 1]; int alignment, num_ends, page_base, pageout_count; - object = m->object; - VM_OBJECT_ASSERT_WLOCKED(object); + VM_OBJECT_ASSERT_WLOCKED(m->object); vm_page_assert_xbusied(m);