Commit 14ece332 authored by Figo.zhang's avatar Figo.zhang Committed by James Toy

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>
parent 59aafd9f
......@@ -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