git: 8bb6b413f6d3 - main - vm/vm_pageout.c: eliminate write-only variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Aug 2024 15:07:41 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8bb6b413f6d32a7db111246b5d2aa8a2b9e50734 commit 8bb6b413f6d32a7db111246b5d2aa8a2b9e50734 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-08-05 15:05:15 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-08-05 15:07:18 +0000 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);