]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/inst: Reduce casts in get_user_instr()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 20 May 2021 13:50:39 +0000 (13:50 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 13:35:10 +0000 (23:35 +1000)
commite394959f80a59a21008dceaaabc107dc6f38cf64
tree8eb9efef1352c40db030b1982c71fce48b57ec40
parent076958a701209072e8137493a6aabb8b4819318f
powerpc/inst: Reduce casts in get_user_instr()

Declare __gui_ptr as 'u32 *' instead of casting it at each use to
'unsigned int *' (which is an equivalent type).

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Use u32 * instead of unsigned int *]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/2c2123998e05535d08ba03a96ea1eea921d06a86.1621516826.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/inst.h