Commit fcf4edac authored by Andrey Ryabinin's avatar Andrey Ryabinin Committed by Linus Torvalds
Browse files

kcov: remove pointless current != NULL check

__sanitizer_cov_trace_pc() is a hot code, so it's worth to remove
pointless '!current' check.  Current is never NULL.


Signed-off-by: default avatarAndrey Ryabinin <>
Acked-by: default avatarDmitry Vyukov <>
Acked-by: default avatarMark Rutland <>
Cc: Andrey Konovalov <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4efb442c
......@@ -62,7 +62,7 @@ void notrace __sanitizer_cov_trace_pc(void)
* We are interested in code coverage as a function of a syscall inputs,
* so we ignore code executed in interrupts.
if (!t || !in_task())
if (!in_task())
mode = READ_ONCE(t->kcov_mode);
if (mode == KCOV_MODE_TRACE) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment