mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-18 15:44:02 +08:00
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>
This commit is contained in:
parent
945a11136e
commit
bf88c8c83e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user