Commit 6e501cc8 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] Remove redundant check in pte_alloc_map()

This check is not needed - the PMD is known to be present.
parent 3e38f30e
...@@ -158,9 +158,7 @@ pte_t * pte_alloc_map(struct mm_struct *mm, pmd_t *pmd, unsigned long address) ...@@ -158,9 +158,7 @@ pte_t * pte_alloc_map(struct mm_struct *mm, pmd_t *pmd, unsigned long address)
pmd_populate(mm, pmd, new); pmd_populate(mm, pmd, new);
} }
out: out:
if (pmd_present(*pmd))
return pte_offset_map(pmd, address); return pte_offset_map(pmd, address);
return NULL;
} }
pte_t * pte_alloc_kernel(struct mm_struct *mm, pmd_t *pmd, unsigned long address) pte_t * pte_alloc_kernel(struct mm_struct *mm, pmd_t *pmd, unsigned long address)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment