Commit dbfe89877741726c30efb41f0132e247a78c3681
Committed by
Linus Torvalds
1 parent
83c1b31794
Exists in
master
and in
6 other branches
frv: remove unnecessary code
remove unnecessary code that matches this coccinelle pattern if (...) return ret; return ret; Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 7 deletions Side-by-side Diff
arch/frv/mm/pgalloc.c
... | ... | @@ -133,13 +133,7 @@ |
133 | 133 | |
134 | 134 | pgd_t *pgd_alloc(struct mm_struct *mm) |
135 | 135 | { |
136 | - pgd_t *pgd; | |
137 | - | |
138 | - pgd = quicklist_alloc(0, GFP_KERNEL, pgd_ctor); | |
139 | - if (!pgd) | |
140 | - return pgd; | |
141 | - | |
142 | - return pgd; | |
136 | + return quicklist_alloc(0, GFP_KERNEL, pgd_ctor); | |
143 | 137 | } |
144 | 138 | |
145 | 139 | void pgd_free(struct mm_struct *mm, pgd_t *pgd) |