From: Tom St Denis <tom.stdenis@amd.com>
Date: Tue, 17 Oct 2017 12:13:39 -0400
Subject: drm/amd/display: Fix brace style
Git-commit: 634086b464ac92d215aeaa3653759b0fbcde1a02
Patch-mainline: v4.15-rc1
References: FATE#326289 FATE#326079 FATE#326049 FATE#322398 FATE#326166
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Andrey Grodzovsky <andey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Petr Tesarik <ptesarik@suse.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
@@ -208,24 +208,21 @@ static void remove_timer_handler(struct
DM_IRQ_TABLE_LOCK(adev, irq_table_flags);
}
- if (handler_in == NULL) {
- /* Remove ALL handlers. */
+ /* Remove ALL handlers. */
+ if (handler_in == NULL)
continue;
- }
- if (handler_in == handler_temp) {
- /* Remove a SPECIFIC handler.
- * Found our handler - we can stop here. */
+ /* Remove a SPECIFIC handler.
+ * Found our handler - we can stop here. */
+ if (handler_in == handler_temp)
break;
- }
}
DM_IRQ_TABLE_UNLOCK(adev, irq_table_flags);
- if (handler_in != NULL && handler_removed == false) {
+ if (handler_in != NULL && handler_removed == false)
DRM_ERROR("DM_IRQ: handler: %p is not in the list!\n",
handler_in);
- }
}
static bool