]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - mm/memory_hotplug.c
mm/memory_hotplug.c: remove unused local zone_type from __remove_zone()
[mirror_ubuntu-artful-kernel.git] / mm / memory_hotplug.c
index 203c46306a746aa1801d4ded9323091e88e870c5..7cd4377ac83ee567ba30e45ef748e2c4e57f5e33 100644 (file)
@@ -580,11 +580,8 @@ static void __remove_zone(struct zone *zone, unsigned long start_pfn)
 {
        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;
-
        pgdat_resize_lock(zone->zone_pgdat, &flags);
        shrink_zone_span(zone, start_pfn, start_pfn + nr_pages);
        shrink_pgdat_span(pgdat, start_pfn, start_pfn + nr_pages);