From: Figo.zhang Date: Tue, 22 Sep 2009 00:01:47 +0000 (-0700) Subject: vmalloc.c: fix double error checking X-Git-Tag: 2.1b_release~11338 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf88c8c83e4425d17e29daa5354ffb1f8ba7b225;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git vmalloc.c: fix double error checking There is no need for double error checking. Signed-off-by: Figo.zhang Acked-by: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 204b824..759deae 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -168,11 +168,9 @@ static int vmap_page_range_noflush(unsigned long start, unsigned long end, next = pgd_addr_end(addr, end); err = vmap_pud_range(pgd, addr, next, prot, pages, &nr); if (err) - break; + return err; } while (pgd++, addr = next, addr != end); - if (unlikely(err)) - return err; return nr; }