* [patch 050/115] mm/memory_hotplug.c: remove unused local zone_type from __remove_zone()
@ 2017-07-10 22:49 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-07-10 22:49 UTC (permalink / raw)
To: akpm, jhubbard, mhocko, mm-commits, torvalds
From: John Hubbard <jhubbard@nvidia.com>
Subject: mm/memory_hotplug.c: remove unused local zone_type from __remove_zone()
__remove_zone() sets up up zone_type, but never uses it for anything.
This does not cause a warning, due to the (necessary) use of
-Wno-unused-but-set-variable. However, it's noise, so just delete it.
Link: http://lkml.kernel.org/r/20170624043421.24465-2-jhubbard@nvidia.com
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory_hotplug.c | 3 ---
1 file changed, 3 deletions(-)
diff -puN mm/memory_hotplug.c~mm-remove-unused-zone_type-variable-from-__remove_zone mm/memory_hotplug.c
--- a/mm/memory_hotplug.c~mm-remove-unused-zone_type-variable-from-__remove_zone
+++ a/mm/memory_hotplug.c
@@ -580,11 +580,8 @@ static void __remove_zone(struct zone *z
{
struct pglist_data *pgdat = zone->zone_pgdat;
int nr_pages = PAGES_PER_SECTION;
- int zone_type;
unsigned long flags;
- zone_type = zone - pgdat->node_zones;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-10 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10 22:49 [patch 050/115] mm/memory_hotplug.c: remove unused local zone_type from __remove_zone() akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.