summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dml
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-10-13 22:12:04 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-10-21 23:52:14 +0300
commitbe11749177d74b2e2c8a4cf2526e88355c40ad00 (patch)
tree5c2628b935bab6a770740a41f28962ae33ba6ad3 /drivers/gpu/drm/amd/display/dc/dml
parent9e7da3268aedd21d559f0f27406874cf92ff582a (diff)
downloadlinux-be11749177d74b2e2c8a4cf2526e88355c40ad00.tar.xz
drm/amd/display: Remove redundant condition in dml vba
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
index a11b37c50d96..117ec11ef304 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
@@ -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;