drm/amd/display: Simplify if conditions
authorThorsten Blum <thorsten.blum@toblux.com>
Tue, 4 Jun 2024 10:37:37 +0000 (12:37 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 19:20:47 +0000 (15:20 -0400)
commit4aa1f202519f6a837376efc87fae4a0ecc97f40b
tree9fa6d047d8e79355574719e7d290d5584654a8bc
parentf1934de46f2b259a87565407a5f2163d66e41092
drm/amd/display: Simplify if conditions

The if conditions !A || A && B can be simplified to !A || B.

Fixes the following Coccinelle/coccicheck warnings reported by
excluded_middle.cocci:

WARNING !A || A && B is equivalent to !A || B
WARNING !A || A && B is equivalent to !A || B
WARNING !A || A && B is equivalent to !A || B

Compile-tested only.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c
drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c