Skip to content

Commit 48e178a

Browse files
wildea01torvalds
authored andcommitted
x86/pgtable: drop pXd_none() checks from pXd_free_pYd_table()
The core code already has a check for pXd_none(), so remove it from the architecture implementation. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Reviewed-by: Toshi Kani <[email protected]> Cc: Chintan Pandya <[email protected]> Cc: Toshi Kani <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Sean Christopherson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9c00697 commit 48e178a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/x86/mm/pgtable.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,6 @@ int pud_free_pmd_page(pud_t *pud, unsigned long addr)
811811
pte_t *pte;
812812
int i;
813813

814-
if (pud_none(*pud))
815-
return 1;
816-
817814
pmd = (pmd_t *)pud_page_vaddr(*pud);
818815
pmd_sv = (pmd_t *)__get_free_page(GFP_KERNEL);
819816
if (!pmd_sv)
@@ -855,9 +852,6 @@ int pmd_free_pte_page(pmd_t *pmd, unsigned long addr)
855852
{
856853
pte_t *pte;
857854

858-
if (pmd_none(*pmd))
859-
return 1;
860-
861855
pte = (pte_t *)pmd_page_vaddr(*pmd);
862856
pmd_clear(pmd);
863857

0 commit comments

Comments
 (0)