From: Alexey Dobriyan Date: Tue, 21 Feb 2006 02:28:10 +0000 (-0800) Subject: [PATCH] mm/mempolicy.c: fix 'if ();' typo X-Git-Tag: v3.12-rc1~38323 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcab6f351305029fc5e3c632209d45cae57e4835;p=kernel%2Fkernel-generic.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 6422fe4..880831b 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);