mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
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>
This commit is contained in:
parent
f2135a4a57
commit
aa2e878efa
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue