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>
This commit is contained in:
parent
60b07cf5d3
commit
578292aaec
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue