]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
MIPS: ftrace: Remove pointer comparison to 0 in prepare_ftrace_return
authorMathieu Malaterre <malat@debian.org>
Wed, 17 Jan 2018 11:31:57 +0000 (12:31 +0100)
committerJames Hogan <jhogan@kernel.org>
Thu, 18 Jan 2018 21:59:24 +0000 (21:59 +0000)
commit83aa53eb5f34f48e6ff24aee02f879b50c949982
tree30230d5b6be6a67e5a3761dbb7582965fdacd4cc
parent2e6522c565522a2e18409c315c49d78c8b74807b
MIPS: ftrace: Remove pointer comparison to 0 in prepare_ftrace_return

Replace pointer comparison to 0 with NULL in prepare_ftrace_return
to improve code readability. Identified with coccinelle script
'badzero.cocci'.

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Reviewed-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18494/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/kernel/ftrace.c