diff options
author | David Rientjes <rientjes@google.com> | 2012-05-29 15:06:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 16:22:18 -0700 |
commit | aa2e878efa7949c8502c9760f92835222714f090 (patch) | |
tree | 0f71f0b1bfbbfc329777ab0a53438fb4519da7dc /mm/huge_memory.c | |
parent | f2135a4a57a798ca8014a138afb626b96d90c842 (diff) | |
download | op-kernel-dev-aa2e878efa7949c8502c9760f92835222714f090.zip op-kernel-dev-aa2e878efa7949c8502c9760f92835222714f090.tar.gz |
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 <rientjes@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r-- | mm/huge_memory.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index f0e5306..8ab2d24 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) |