diff options
| author | Alex Hung <[email protected]> | 2024-09-18 21:33:27 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-01 21:37:33 +0000 |
| commit | 28d2a14ac0a3ff4143d3cbb265a7ce4801f396d3 (patch) | |
| tree | f42c12eaf16462171ddeb84bb9d0997f3c2d1894 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
| parent | drm/amd/display: Introduce New ABC Framework for Brightness Control (diff) | |
| download | kernel-28d2a14ac0a3ff4143d3cbb265a7ce4801f396d3.tar.gz kernel-28d2a14ac0a3ff4143d3cbb265a7ce4801f396d3.zip | |
drm/amd/display: Remove always-false branches
[WHAT & HOW]
MacroTileSizeBytes is set to either 256 or 65535 and it is never
4096. Its branch is not taken, and should be removed. Similarly,
mode_422 is always 0 and thus ppe will always be 1. The ternary
operator should be removed.
This fixes 2 DEADCODE issues reported by Coverity.
Reviewed-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Signed-off-by: Fangzhi Zuo <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions
