]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Some cosmetic updates to try_to_emulate()
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 22 Sep 2017 09:10:43 +0000 (14:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 12:42:12 +0000 (23:42 +1100)
commit22085337f5b9d7a7adf5c6cc4e007c28e5216a7f
tree040ed8b5d0e5620b6ebbdb119e678e6544ea779d
parentc3dda4b0db9cf5044010e4de88e5e5b94edf916c
powerpc/kprobes: Some cosmetic updates to try_to_emulate()

1. This is only used in kprobes.c, so make it static.
2. Remove the un-necessary (ret == 0) comparison in the else clause.

Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/kprobes.c