Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Greg Dietsche and committed by
Linus Torvalds
dbfe8987 83c1b317

+1 -7
+1 -7
arch/frv/mm/pgalloc.c
··· 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)