Commit bf88c8c8 authored by Figo.zhang's avatar Figo.zhang Committed by Linus Torvalds
Browse files

vmalloc.c: fix double error checking

There is no need for double error checking.
Signed-off-by: default avatarFigo.zhang <>
Acked-by: default avatarTejun Heo <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 945a1113
......@@ -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)
return err;
} while (pgd++, addr = next, addr != end);
if (unlikely(err))
return err;
return nr;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment