powerpc/mm/64s: Consolidate SLB assertions
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Nov 2018 08:23:28 +0000 (19:23 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Nov 2018 08:28:53 +0000 (19:28 +1100)
commit0ae790683fc28bb718d74f87cdf753c6445fe28d
treefe6a050b5f5d016f2ba413c0e37485dbdedade21
parent3182215dd0b2120fb942ed88430cfb7c12d583e0
powerpc/mm/64s: Consolidate SLB assertions

The code for assert_slb_exists() and assert_slb_notexists() is almost
identical, except for the polarity of the WARN_ON(). In a future patch
we'll need to modify this code, so consolidate it now into a single
function.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slb.c