Skip to content

Commit 578292a

Browse files
hidrv4alexdeucher
authored andcommitted
drm/amd/display: Remove duplicate/repeating expression
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>
1 parent 60b07cf commit 578292a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static bool CalculateBytePerPixelAnd256BBlockSizes(
5151
*BytePerPixelDETC = 0;
5252
*BytePerPixelY = 4;
5353
*BytePerPixelC = 0;
54-
} else if (SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_16) {
54+
} else if (SourcePixelFormat == dm_444_16) {
5555
*BytePerPixelDETY = 2;
5656
*BytePerPixelDETC = 0;
5757
*BytePerPixelY = 2;

0 commit comments

Comments
 (0)