Skip to content

Commit

Permalink
frv: remove unnecessary code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Dietsche authored and Linus Torvalds committed Jul 30, 2011
1 parent 83c1b31 commit dbfe898
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arch/frv/mm/pgalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbfe898

Please sign in to comment.