From: Alexey Dobriyan Date: Tue, 21 Feb 2006 02:28:10 +0000 (-0800) Subject: [PATCH] mm/mempolicy.c: fix 'if ();' typo X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fcab6f351305029fc5e3c632209d45cae57e4835;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [PATCH] mm/mempolicy.c: fix 'if ();' typo [akpm; it happens that the code was still correct, only inefficient ] Signed-off-by: Alexey Dobriyan Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 6422fe478113..880831bd3003 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -587,7 +587,7 @@ redo: } list_add(&page->lru, &newlist); nr_pages++; - if (nr_pages > MIGRATE_CHUNK_SIZE); + if (nr_pages > MIGRATE_CHUNK_SIZE) break; } err = migrate_pages(pagelist, &newlist, &moved, &failed);