From: Alexander Gordeev Date: Tue, 10 Nov 2020 09:36:21 +0000 (+0100) Subject: s390/vmem: remove redundant check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=af71657c153fc18d7bcd35a3d5240fbd1ac7ebbd;p=linux.git s390/vmem: remove redundant check Reviewed-by: David Hildenbrand Signed-off-by: Alexander Gordeev Signed-off-by: Heiko Carstens --- diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c index b239f2ba93b09..56ab9bb770f3a 100644 --- a/arch/s390/mm/vmem.c +++ b/arch/s390/mm/vmem.c @@ -223,7 +223,7 @@ static int __ref modify_pmd_table(pud_t *pud, unsigned long addr, if (!add) { if (pmd_none(*pmd)) continue; - if (pmd_large(*pmd) && !add) { + if (pmd_large(*pmd)) { if (IS_ALIGNED(addr, PMD_SIZE) && IS_ALIGNED(next, PMD_SIZE)) { if (!direct)