diff options
| author | Ivan Lipski <[email protected]> | 2024-05-31 16:54:24 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-06-27 17:10:36 -0400 |
| commit | c6dfe8f20b00d0ac6addc0024d4c70693e78e7cd (patch) | |
| tree | 6619d275595ee205e8466982c6015f89e8983550 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 9da0f7736763aa0fbf63bb15060c6827135f3f67 (diff) | |
drm/amd/display: Remove unnecessary variable
[WHY]
Coverity analysis flagged this code as DEADCODE because
the condition '(!need_recovery)' is never true.
The variable 'need_recovery' is initialized as 'true',
is not assigned to 'false' anywhere before the
conditional statement.
Since the variable is only used for the conditional check,
but the check can never be true, the variable itself is
redundant.
[HOW]
Removed the variable 'need_recovery'.
Reviewed-by: Alex Hung <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Signed-off-by: Ivan Lipski <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions