aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-12-10 14:32:05 +0000
committerChris Wilson <[email protected]>2019-12-10 14:35:24 +0000
commit1805ec67b12a12c794aee7ed46bd577748ee2a2c (patch)
tree1c52fe04ae2384a5f354f522b6cff58394cb39dd /tools/perf/scripts/python
parent82c69bf58650e644c61aa2bf5100b63a1070fd2f (diff)
drm/i915/selftests: fix uninitialized variable sum when summing up values
Currently the variable sum is not uninitialized and hence will cause an incorrect result in the summation values. Fix this by initializing sum to the first item in the summation. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: 3c7a44bbbfa7 ("drm/i915/selftests: Perform some basic cycle counting of MI ops") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions