mm: hugetlb: remove minimum_order variable
authorMuchun Song <songmuchun@bytedance.com>
Thu, 16 Jun 2022 03:38:46 +0000 (11:38 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:49 +0000 (18:08 -0700)
commitdc2628f39582e79bce41842fc91235b70054838c
tree473b739eac687e1f7a2cf9cc9a19adda55ed4722
parent66361095129b3b5d065e6c09cf0c085ef4a8c40f
mm: hugetlb: remove minimum_order variable

commit 641844f5616d ("mm/hugetlb: introduce minimum hugepage order") fixed
a static checker warning and introduced a global variable minimum_order to
fix the warning.  However, the local variable in
dissolve_free_huge_pages() can be initialized to
huge_page_order(&default_hstate) to fix the warning.

So remove minimum_order to simplify the code.

Link: https://lkml.kernel.org/r/20220616033846.96937-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c