From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx106.postini.com [74.125.245.106]) by kanga.kvack.org (Postfix) with SMTP id 42A006B0005 for ; Wed, 10 Apr 2013 16:30:49 -0400 (EDT) Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 11 Apr 2013 06:25:06 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 113E8357804E for ; Thu, 11 Apr 2013 06:30:42 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3AKU3lj11600224 for ; Thu, 11 Apr 2013 06:30:03 +1000 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r3AKU8sc030842 for ; Thu, 11 Apr 2013 06:30:08 +1000 From: "Srivatsa S. Bhat" Subject: [PATCH] mm: Simplify for_each_populated_zone() Date: Thu, 11 Apr 2013 01:57:33 +0530 Message-ID: <20130410202727.20368.29222.stgit@srivatsabhat.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, "Srivatsa S. Bhat" , KOSAKI Motohiro , KAMEZAWA Hiroyuki , Johannes Weiner , Mel Gorman , Andrew Morton Simplify the if/else block to make it more readable. Cc: KOSAKI Motohiro Cc: KAMEZAWA Hiroyuki Cc: Johannes Weiner Cc: Mel Gorman Cc: Andrew Morton Signed-off-by: Srivatsa S. Bhat --- 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 ede2749..2489042 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -948,9 +948,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 + if (populated_zone(zone)) static inline struct zone *zonelist_zone(struct zoneref *zoneref) { -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org