diff options
author | Alex Hung <alex.hung@amd.com> | 2024-12-17 11:51:58 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-01-10 13:42:26 -0500 |
commit | 36b23e3baf9129d5b6c3a3a85b6b7ffb75ae287c (patch) | |
tree | e38f4f786fa0c41724a13349f2fcc1413a702a04 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b5c764d6ed556c4e81fbe3fd976da77ec450c08e (diff) |
drm/amd/display: Initialize denominator defaults to 1
[WHAT & HOW]
Variables, used as denominators and maybe not assigned to other values,
should be initialized to non-zero to avoid DIVIDE_BY_ZERO, as reported
by Coverity.
Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e2c4c6c10542ccfe4a0830bb6c9fd5b177b7bbb7)
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions