From: Andrew Morton Date: Wed, 24 Aug 2022 21:10:22 +0000 (-0700) Subject: mm-gupc-refactor-check_and_migrate_movable_pages-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4b7e70ed78b243682f1d750b83d20fed070a7747;p=users%2Fjedix%2Flinux-maple.git mm-gupc-refactor-check_and_migrate_movable_pages-fix mm/gup.c: In function 'check_and_migrate_movable_pages': mm/gup.c:2045:13: error: unused variable 'ret' [-Werror=unused-variable] 2045 | int ret; | ^~~ Cc: Alistair Popple Signed-off-by: Andrew Morton --- diff --git a/mm/gup.c b/mm/gup.c index 19c792698024..e41c598de4a4 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -2066,7 +2066,6 @@ err: static long check_and_migrate_movable_pages(unsigned long nr_pages, struct page **pages) { - int ret; unsigned long collected; LIST_HEAD(movable_page_list);