aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0871-drm-amd-dal-Remove-unnecessary-SIGTRAP.patch
blob: 86d841042e4343f758142033528b4ed080338bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From ec9c37970569976638e1ac882230a26366b09849 Mon Sep 17 00:00:00 2001
From: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Date: Fri, 26 Feb 2016 17:30:32 -0500
Subject: [PATCH 0871/1110] drm/amd/dal: Remove unnecessary SIGTRAP

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland<harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_resource.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c b/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c
index 0414f3e..917e6a5 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c
@@ -438,13 +438,6 @@ bool resource_attach_surfaces_to_context(
 			if (context->res_ctx.pipe_ctx[j].stream !=
 				DC_STREAM_TO_CORE(dc_target->streams[i]))
 				continue;
-			if (k == surface_count) {
-				/* this means there are more pipes per stream
-				 * than there are planes and makes no sense
-				 */
-				BREAK_TO_DEBUGGER();
-				continue;
-			}
 
 			context->res_ctx.pipe_ctx[j].surface = surface;
 			k++;
-- 
2.7.4