diff options
author | Nathan Chancellor <[email protected]> | 2020-10-06 12:58:48 -0700 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2020-10-08 16:38:06 +1100 |
commit | 10b0f78a73237181260fc3661577d59b475f8a20 (patch) | |
tree | c2e3f441fd9c991f797ff64585acf48c0a86367b /tools/perf/scripts/python/Perf-Trace-Util | |
parent | 4f28945da0c502c794eb4e4d535d3ba65d3c9769 (diff) |
crypto: xor - Remove unused variable count in do_xor_speed
Clang warns:
crypto/xor.c:101:4: warning: variable 'count' is uninitialized when used
here [-Wuninitialized]
count++;
^~~~~
crypto/xor.c:86:17: note: initialize the variable 'count' to silence
this warning
int i, j, count;
^
= 0
1 warning generated.
After the refactoring to use ktime that happened in this function, count
is only assigned, never read. Just remove the variable to get rid of the
warning.
Fixes: c055e3eae0f1 ("crypto: xor - use ktime for template benchmarking")
Link: https://github.com/ClangBuiltLinux/linux/issues/1171
Signed-off-by: Nathan Chancellor <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions