From: David Rientjes Date: Wed, 25 Apr 2012 01:03:29 +0000 (+1000) Subject: mm, thp: remove unnecessary ret variable X-Git-Tag: next-20120430~2^2~159 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=586d30c0edd1c77f46400b27b192afaa0d738473;p=karo-tx-linux.git mm, thp: remove unnecessary ret variable The "ret" variable is unnecessary in __do_huge_pmd_anonymous_page(), so remove it. Signed-off-by: David Rientjes Cc: Andrea Arcangeli Signed-off-by: Andrew Morton --- diff --git a/mm/huge_memory.c b/mm/huge_memory.c index f0e5306eeb55..8ab2d24faae5 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -636,7 +636,6 @@ static int __do_huge_pmd_anonymous_page(struct mm_struct *mm, unsigned long haddr, pmd_t *pmd, struct page *page) { - int ret = 0; pgtable_t pgtable; VM_BUG_ON(!PageCompound(page)); @@ -675,7 +674,7 @@ static int __do_huge_pmd_anonymous_page(struct mm_struct *mm, spin_unlock(&mm->page_table_lock); } - return ret; + return 0; } static inline gfp_t alloc_hugepage_gfpmask(int defrag, gfp_t extra_gfp)