mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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. Link: http://lkml.kernel.org/r/20170929162221.32500-1-aryabinin@virtuozzo.com Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Acked-by: Dmitry Vyukov <dvyukov@google.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Cc: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
4efb442cc1
commit
fcf4edac04
@@ -62,7 +62,7 @@ void notrace __sanitizer_cov_trace_pc(void)
|
|||||||
* We are interested in code coverage as a function of a syscall inputs,
|
* We are interested in code coverage as a function of a syscall inputs,
|
||||||
* so we ignore code executed in interrupts.
|
* so we ignore code executed in interrupts.
|
||||||
*/
|
*/
|
||||||
if (!t || !in_task())
|
if (!in_task())
|
||||||
return;
|
return;
|
||||||
mode = READ_ONCE(t->kcov_mode);
|
mode = READ_ONCE(t->kcov_mode);
|
||||||
if (mode == KCOV_MODE_TRACE) {
|
if (mode == KCOV_MODE_TRACE) {
|
||||||
|
Reference in New Issue
Block a user