[PATCH 04/10] mm/page_alloc: remove never used "order" in alloc_contig_range()

From: Pengfei Li
Date: Thu Jul 25 2019 - 14:44:07 EST


The "order" will never be used in alloc_contig_range(), and "order"
is a negative number is very strange. So just remove it.

Signed-off-by: Pengfei Li <lpf.vector@xxxxxxxxx>
---
mm/page_alloc.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 7d47af09461f..6208ebfac980 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -8347,7 +8347,6 @@ int alloc_contig_range(unsigned long start, unsigned long end,

struct compact_control cc = {
.nr_migratepages = 0,
- .order = -1,
.zone = page_zone(pfn_to_page(start)),
.mode = MIGRATE_SYNC,
.ignore_skip_hint = true,
--
2.21.0