Commit 3bf8c48
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>1 parent 526af04 commit 3bf8c48
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 299 | + | |
| 300 | + | |
304 | 301 | | |
305 | 302 | | |
306 | 303 | | |
| |||
999 | 996 | | |
1000 | 997 | | |
1001 | 998 | | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
| 999 | + | |
| 1000 | + | |
1006 | 1001 | | |
1007 | 1002 | | |
1008 | 1003 | | |
| |||
0 commit comments