diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-09-21 20:01:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:30 -0400 |
commit | bf88c8c83e4425d17e29daa5354ffb1f8ba7b225 (patch) | |
tree | fc87d3c8c94ec6451cbc9821b5d999397eaf0808 /mm/vmalloc.c | |
parent | 945a11136ebdfa7fcce319ee6215958e84cb85f6 (diff) |
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>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 204b8243d8ab..759deae4539a 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -168,11 +168,9 @@ static int vmap_page_range_noflush(unsigned long start, unsigned long end, | |||
168 | next = pgd_addr_end(addr, end); | 168 | next = pgd_addr_end(addr, end); |
169 | err = vmap_pud_range(pgd, addr, next, prot, pages, &nr); | 169 | err = vmap_pud_range(pgd, addr, next, prot, pages, &nr); |
170 | if (err) | 170 | if (err) |
171 | break; | 171 | return err; |
172 | } while (pgd++, addr = next, addr != end); | 172 | } while (pgd++, addr = next, addr != end); |
173 | 173 | ||
174 | if (unlikely(err)) | ||
175 | return err; | ||
176 | return nr; | 174 | return nr; |
177 | } | 175 | } |
178 | 176 | ||