aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1003-drm-amd-display-Remove-some-extra-braces.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1003-drm-amd-display-Remove-some-extra-braces.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1003-drm-amd-display-Remove-some-extra-braces.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1003-drm-amd-display-Remove-some-extra-braces.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1003-drm-amd-display-Remove-some-extra-braces.patch
new file mode 100644
index 00000000..5a476c16
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1003-drm-amd-display-Remove-some-extra-braces.patch
@@ -0,0 +1,39 @@
+From 5ad38902dedef3c3acf11bfef7ea4fce8fd96826 Mon Sep 17 00:00:00 2001
+From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Date: Mon, 19 Nov 2018 17:02:39 -0500
+Subject: [PATCH 1003/2940] drm/amd/display: Remove some extra braces
+
+Remove braces around single-line conditionals
+
+Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+Acked-by: Tony Cheng <Tony.Cheng@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+index cef17789b744..f1ee64327818 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+@@ -2251,13 +2251,11 @@ static void program_all_pipe_in_tree(
+
+ }
+
+- if (pipe_ctx->plane_state != NULL) {
++ if (pipe_ctx->plane_state != NULL)
+ dcn10_program_pipe(dc, pipe_ctx, context);
+- }
+
+- if (pipe_ctx->bottom_pipe != NULL && pipe_ctx->bottom_pipe != pipe_ctx) {
++ if (pipe_ctx->bottom_pipe != NULL && pipe_ctx->bottom_pipe != pipe_ctx)
+ program_all_pipe_in_tree(dc, pipe_ctx->bottom_pipe, context);
+- }
+ }
+
+ struct pipe_ctx *find_top_pipe_for_stream(
+--
+2.17.1
+