diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-09-22 02:01:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 16:17:30 +0200 |
commit | bf88c8c83e4425d17e29daa5354ffb1f8ba7b225 (patch) | |
tree | fc87d3c8c94ec6451cbc9821b5d999397eaf0808 /mm/vmalloc.c | |
parent | mm: add gfp mask checking for __get_free_pages() (diff) | |
download | linux-bf88c8c83e4425d17e29daa5354ffb1f8ba7b225.tar.xz linux-bf88c8c83e4425d17e29daa5354ffb1f8ba7b225.zip |
vmalloc.c: fix double error checking
There is no need for double error checking.
Signed-off-by: Figo.zhang <figo1802@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 204b8243d8ab..759deae4539a 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; } |