]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/radix: Drop unneeded NULL check
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Oct 2017 07:11:00 +0000 (12:41 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 Oct 2017 10:08:31 +0000 (12:08 +0200)
commite4c144a43d4182e6feb290aecc08b9f24c2d2aad
tree98b77656be9b901d3edfe5b43f7a79088ed1dd70
parent7cb2e61f49ec26e41677240cddc4fe9b09de7d01
powerpc/mm/radix: Drop unneeded NULL check

We call these functions with non-NULL mm or vma. Hence we can skip the
NULL check in these functions. We also remove now unused function
__local_flush_hugetlb_page().

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[mpe: Drop the checks with is_vm_hugetlb_page() as noticed by Nick]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/hugetlb.h
arch/powerpc/mm/tlb-radix.c