powerpc/nohash: Use IS_ENABLED() to simplify __set_pte_at()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 24 Apr 2018 16:31:32 +0000 (18:31 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 May 2018 10:37:47 +0000 (20:37 +1000)
commitd5808ffaec817ff28e10c9970e1b0260c8c50bc4
treee5e0b6ec567256299abf1803c49988f1a33d0819
parent0d594aa75f5e9f48c5365708f9b7d286a73ede53
powerpc/nohash: Use IS_ENABLED() to simplify __set_pte_at()

By using IS_ENABLED() we can simplify __set_pte_at() by removing
redundant *ptep = pte.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/nohash/pgtable.h