Avoids the inverted condition of the open-coded version. Signed-off-by: Daniel Vetter <daniel.vet...@intel.com> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Michal Hocko <mho...@suse.com> Cc: Vlastimil Babka <vba...@suse.cz> Cc: Mel Gorman <mgor...@techsingularity.net> Cc: David Rientjes <rient...@google.com> Cc: Kemi Wang <kemi.w...@intel.com> Cc: Pavel Tatashin <pasha.tatas...@oracle.com> Cc: Petr Tesarik <ptesa...@suse.com> Cc: YASUAKI ISHIMATSU <yasu.isim...@gmail.com> Cc: Andrey Ryabinin <aryabi...@virtuozzo.com> Cc: Nikolay Borisov <nbori...@suse.com> Cc: linux...@kvack.org --- include/linux/mmzone.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 32699b2dc52a..1bd5f4c72c8b 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -940,9 +940,7 @@ extern struct zone *next_zone(struct zone *zone); for (zone = (first_online_pgdat())->node_zones; \ zone; \ zone = next_zone(zone)) \ - if (!populated_zone(zone)) \ - ; /* do nothing */ \ - else + for_each_if (populated_zone(zone)) static inline struct zone *zonelist_zone(struct zoneref *zoneref) { -- 2.18.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx