]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Remove duplicate/repeating expression
authorDeepak R Varma <drv@mailo.com>
Fri, 10 Feb 2023 10:11:51 +0000 (15:41 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Feb 2023 03:24:48 +0000 (22:24 -0500)
Remove duplicate or repeating expressions in the if condition
evaluation. Issue identified using doubletest.cocci Coccinelle semantic
patch.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c

index 61ee9ba063a78ee8925028cdf3358658f292b168..6576b897a512754011a33a7a5fdc59857cf98f77 100644 (file)
@@ -51,7 +51,7 @@ static bool CalculateBytePerPixelAnd256BBlockSizes(
                *BytePerPixelDETC = 0;
                *BytePerPixelY = 4;
                *BytePerPixelC = 0;
-       } else if (SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_16) {
+       } else if (SourcePixelFormat == dm_444_16) {
                *BytePerPixelDETY = 2;
                *BytePerPixelDETC = 0;
                *BytePerPixelY = 2;