]> git.baikalelectronics.ru Git - kernel.git/commit
kcov: remove pointless current != NULL check
authorAndrey Ryabinin <aryabinin@virtuozzo.com>
Fri, 17 Nov 2017 23:30:42 +0000 (15:30 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:04 +0000 (16:10 -0800)
commit95a73336a31feb6bc97d95b9f384d1e0de5ba49b
treea8745b419a9e85949417c3d7a42b39ddbfe4b697
parentd36834e2467bce55aa17b4cdc899d0b2e910c54f
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>
kernel/kcov.c