]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Remove redundant create_branch() calls
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 9 May 2022 05:36:00 +0000 (07:36 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 May 2022 13:11:28 +0000 (23:11 +1000)
commita96fa632fa2f30bf612cebd45b6fd58aeaf35068
treecb3e4bb37c1675112cbae32a84295187f0cf9fe6
parent9395b69f0281a41fe520ee8a9503222635deacfb
powerpc/ftrace: Remove redundant create_branch() calls

Since commit 55afba3325e1 ("powerpc/code-patching: Fix patch_branch()
return on out-of-range failure") patch_branch() fails with -ERANGE
when trying to branch out of range.

No need to perform the test twice. Remove redundant create_branch()
calls.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/aa45fbad0b4b7493080835d8276c0cb4ce146503.1652074503.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/trace/ftrace.c