Use "zone_is_empty()" instead of "if (zone->spanned_pages)".
Simplify the code, no functional change.
Signed-off-by: Xishi Qiu
---
mm/memory_hotplug.c |6 +++---
mm/page_alloc.c |2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mm/memory_hotplug.c
Use zone_is_empty() instead of if (zone-spanned_pages).
Simplify the code, no functional change.
Signed-off-by: Xishi Qiu qiuxi...@huawei.com
---
mm/memory_hotplug.c |6 +++---
mm/page_alloc.c |2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mm/memory_hotplug.c
2 matches
Mail list logo