diff options
| author | Alex Hung <alex.hung@amd.com> | 2024-09-18 15:33:27 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-01 17:37:33 -0400 |
| commit | 28d2a14ac0a3ff4143d3cbb265a7ce4801f396d3 (patch) | |
| tree | f42c12eaf16462171ddeb84bb9d0997f3c2d1894 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | 70d98a20386e778177c3c3d0baa1a5fa9e60f2ae (diff) | |
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 <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
