]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52f6093fcec8c9c22d65d58cff76d069ce0de855
treee5e0b6ec567256299abf1803c49988f1a33d0819
parent2cb4d3f638f6e4d89ca715c0e31b7e77e9f694ae
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