diff options
author | Tim Gardner <[email protected]> | 2021-09-10 12:44:05 -0600 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-09-17 21:20:34 +0200 |
commit | 85784470efa2d5733e86679ba05d310ece81b20f (patch) | |
tree | 7e3fd9ad34b721a2a97f5a2eac971ef9af73179d /tools/perf/util/trace-event-scripting.c | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) |
x86/smp: Remove unnecessary assignment to local var freq_scale
Coverity warns of an unused value in arch_scale_freq_tick():
CID 100778 (#1 of 1): Unused value (UNUSED_VALUE)
assigned_value: Assigning value 1024ULL to freq_scale here, but that stored
value is overwritten before it can be used.
It was introduced by commit:
e2b0d619b400a ("x86, sched: check for counters overflow in frequency invariant accounting")
Remove the variable initializer.
Signed-off-by: Tim Gardner <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Giovanni Gherdovich <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions