aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlex Hung <[email protected]>2024-07-15 09:57:01 -0600
committerAlex Deucher <[email protected]>2024-07-27 17:35:44 -0400
commit4067f4fa0423a89fb19a30b57231b384d77d2610 (patch)
treeb38b32cd73394053165ce1c4fa9c27c2f36b51f4 /tools/perf/scripts/python
parent6eb1fe53ee94cffd7187844d08d46ba8659d667a (diff)
drm/amd/display: Initialize get_bytes_per_element's default to 1
Variables, used as denominators and maybe not assigned to other values, should not be 0. bytes_per_element_y & bytes_per_element_c are initialized by get_bytes_per_element() which should never return 0. This fixes 10 DIVIDE_BY_ZERO issues reported by Coverity. Signed-off-by: Alex Hung <[email protected]> Reviewed-by: Aurabindo Pillai <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions