]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: etm4x: Two function calls less
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 29 Aug 2019 20:28:26 +0000 (14:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 20:01:15 +0000 (22:01 +0200)
commite5a4ffaf552b6a7228698f83727d317ac8f97fe4
tree13b0b75459145d43a8e486187e31f2f61cc7c024
parenta85b133362142440fa3d41a32bebbbf191b29ab1
coresight: etm4x: Two function calls less

Avoid an extra function call in two function implementations
by using a ternary operator instead of a conditional statement.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20190829202842.580-2-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c