Re: [PATCH] frv: remove unnecessary code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/09/2011 10:29 AM, Greg Dietsche wrote:
On Thu, Jun 16, 2011 at 11:44:20AM -0500, Greg Dietsche wrote:
remove unnecessary code that matches this coccinelle pattern
	if (...)
		return ret;
	return ret;

Signed-off-by: Greg Dietsche<Gregory.Dietsche@xxxxxxx>
---
  arch/frv/mm/pgalloc.c |    8 +-------
  1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/arch/frv/mm/pgalloc.c b/arch/frv/mm/pgalloc.c
index c42c83d..4fb63a3 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)
--
1.7.2.5

--
Any feedback on this patch?

Thanks!
Greg

adding trivial@xxxxxxxxxx to the cc list since this is trivial and no one has picked up this patch to date.

Greg
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux