]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Fix brace style
authorTom St Denis <tom.stdenis@amd.com>
Tue, 17 Oct 2017 16:13:39 +0000 (12:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:53:46 +0000 (16:53 -0400)
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c

index b9e4d383100112b7b7d259a802d50ddf54ff93cd..ca5d0d1581dc7586c6d50de57aa61d3364a6bf56 100644 (file)
@@ -208,24 +208,21 @@ static void remove_timer_handler(struct amdgpu_device *adev,
                        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