提交 bf88c8c8 编写于 作者: F Figo.zhang 提交者: Linus Torvalds

vmalloc.c: fix double error checking

There is no need for double error checking.
Signed-off-by: NFigo.zhang <figo1802@gmail.com>
Acked-by: NTejun Heo <tj@kernel.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 945a1113
...@@ -168,11 +168,9 @@ static int vmap_page_range_noflush(unsigned long start, unsigned long end, ...@@ -168,11 +168,9 @@ static int vmap_page_range_noflush(unsigned long start, unsigned long end,
next = pgd_addr_end(addr, end); next = pgd_addr_end(addr, end);
err = vmap_pud_range(pgd, addr, next, prot, pages, &nr); err = vmap_pud_range(pgd, addr, next, prot, pages, &nr);
if (err) if (err)
break; return err;
} while (pgd++, addr = next, addr != end); } while (pgd++, addr = next, addr != end);
if (unlikely(err))
return err;
return nr; return nr;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册