aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2930-drm-amd-display-Remove-redundant-NULL-check-in-DCE11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2930-drm-amd-display-Remove-redundant-NULL-check-in-DCE11.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2930-drm-amd-display-Remove-redundant-NULL-check-in-DCE11.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2930-drm-amd-display-Remove-redundant-NULL-check-in-DCE11.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2930-drm-amd-display-Remove-redundant-NULL-check-in-DCE11.patch
new file mode 100644
index 00000000..ea2278b6
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2930-drm-amd-display-Remove-redundant-NULL-check-in-DCE11.patch
@@ -0,0 +1,32 @@
+From 9868898ca522ab6b4600767715e97939baf8f364 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Wed, 22 Nov 2017 21:05:55 -0500
+Subject: [PATCH 2930/4131] drm/amd/display: Remove redundant NULL check in
+ DCE11 HWSS
+
+We already check this a couple lines earlier.
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+index dd83867..80d3661 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+@@ -2017,8 +2017,7 @@ enum dc_status dce110_apply_ctx_to_hw(
+ if (pipe_ctx->stream == pipe_ctx_old->stream)
+ continue;
+
+- if (pipe_ctx->stream && pipe_ctx_old->stream
+- && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
++ if (pipe_ctx_old->stream && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
+ continue;
+
+ if (pipe_ctx->top_pipe)
+--
+2.7.4
+