summaryrefslogtreecommitdiffstats
path: root/arch/frv/mm
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-07-29 17:46:16 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-30 08:41:09 +0200
commitdbfe89877741726c30efb41f0132e247a78c3681 (patch)
tree40511033c8fe687b232a7cde1ee1ba3dea1bc42e /arch/frv/mm
parentramoops: fix compile failure on parisc (diff)
downloadlinux-dbfe89877741726c30efb41f0132e247a78c3681.tar.xz
linux-dbfe89877741726c30efb41f0132e247a78c3681.zip
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>
Diffstat (limited to 'arch/frv/mm')
-rw-r--r--arch/frv/mm/pgalloc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/frv/mm/pgalloc.c b/arch/frv/mm/pgalloc.c
index c42c83d507bc..4fb63a36bd52 100644
--- a/arch/frv/mm/pgalloc.c
+++ b/arch/frv/mm/pgalloc.c
@@ -133,13 +133,7 @@ void pgd_dtor(void *pgd)
pgd_t *pgd_alloc(struct mm_struct *mm)
{
- pgd_t *pgd;
-
- pgd = quicklist_alloc(0, GFP_KERNEL, pgd_ctor);
- if (!pgd)
- return pgd;
-
- return pgd;
+ return quicklist_alloc(0, GFP_KERNEL, pgd_ctor);
}
void pgd_free(struct mm_struct *mm, pgd_t *pgd)