]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/page_alloc.c:__alloc_contig_migrate_range(): cleanup
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:13:59 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:20 +0000 (16:52 +1100)
remove a test-n-branch in the wrapup code

Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index 5948a77994bb32f5befd582ff311ca98ceceafbc..9acd27e5dc2b6e69aaea8ae3e4265edd59743c60 100644 (file)
@@ -5806,9 +5806,11 @@ static int __alloc_contig_migrate_range(struct compact_control *cc,
                                    0, false, MIGRATE_SYNC,
                                    MR_CMA);
        }
-       if (ret < 0)
+       if (ret < 0) {
                putback_movable_pages(&cc->migratepages);
-       return ret > 0 ? 0 : ret;
+               return ret;
+       }
+       return 0;
 }
 
 /**