powerpc/book3s64/pkeys: Remove is_pkey_enabled()
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 9 Jul 2020 03:29:46 +0000 (08:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Jul 2020 14:01:22 +0000 (00:01 +1000)
commit482b9b3948675df60c015b2155011c1f93234992
tree50358c9ef40b51c89febc9c4e8ac8525b6da5d7a
parent3563b9bea0ca7f53e4218b5e268550341a49f333
powerpc/book3s64/pkeys: Remove is_pkey_enabled()

There is only one caller to this function and the function is wrongly
named. Avoid further confusion w.r.t name and open code this at the
only call site. Also remove read_uamor(). There are no users for
the same after this.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709032946.881753-24-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/book3s64/pkeys.c