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

vmalloc.c: fix double error checking

There is no need for double error checking.
Signed-off-by: default avatarFigo.zhang <figo1802@gmail.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
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)
break;
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