drm/amd/display: Remove redundant condition in dml vba
authorHarry Wentland <harry.wentland@amd.com>
Fri, 13 Oct 2017 19:12:04 +0000 (15:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:52:14 +0000 (16:52 -0400)
Found by 0-day
https://lists.freedesktop.org/archives/dri-devel/2017-October/154698.html

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c

index a11b37c..117ec11 100644 (file)
@@ -3463,7 +3463,7 @@ bool Calculate256BBlockSizes(
                unsigned int *BlockWidth256BytesC)
 {
        if ((SourcePixelFormat == dm_444_64 || SourcePixelFormat == dm_444_32
-                       || SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_16
+                       || SourcePixelFormat == dm_444_16
                        || SourcePixelFormat == dm_444_8)) {
                if (SurfaceTiling == dm_sw_linear) {
                        *BlockHeight256BytesY = 1;