aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0298-drm-amd-display-remove-redundant-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0298-drm-amd-display-remove-redundant-check.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0298-drm-amd-display-remove-redundant-check.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0298-drm-amd-display-remove-redundant-check.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0298-drm-amd-display-remove-redundant-check.patch
new file mode 100644
index 00000000..e755ebe0
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0298-drm-amd-display-remove-redundant-check.patch
@@ -0,0 +1,39 @@
+From 1f1b5e61f5b80f25c3acdc454114f4ba1a3c9b01 Mon Sep 17 00:00:00 2001
+From: Charlene Liu <charlene.liu@amd.com>
+Date: Mon, 20 Mar 2017 14:49:53 -0400
+Subject: [PATCH 0298/4131] drm/amd/display: remove redundant check
+
+Signed-off-by: Charlene Liu <charlene.liu@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
+Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+index 875d1a6..61ca1e2 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+@@ -1063,8 +1063,6 @@ static bool are_stream_backends_same(
+ if (stream_a == NULL || stream_b == NULL)
+ return false;
+
+- if (stream_a->public.timing.pixel_encoding != stream_b->public.timing.pixel_encoding)
+- return false;
+ if (is_timing_changed(stream_a, stream_b))
+ return false;
+
+@@ -1074,8 +1072,6 @@ static bool are_stream_backends_same(
+ bool is_stream_unchanged(
+ const struct core_stream *old_stream, const struct core_stream *stream)
+ {
+- if (old_stream != stream)
+- return false;
+
+ if (!are_stream_backends_same(old_stream, stream))
+ return false;
+--
+2.7.4
+