OSDN Git Service

drm/amdgpu/display: remove redundant continue statement
authorColin Ian King <colin.king@canonical.com>
Wed, 3 Mar 2021 13:25:10 +0000 (13:25 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Mar 2021 20:14:07 +0000 (15:14 -0500)
The continue statement in a for-loop is redudant and can be removed.
Clean up the code to address this.

Addresses-Coverity: ("Continue as no effect")
Fixes: b6f91fc183f7 ("drm/amdgpu/display: buffer INTERRUPT_LOW_IRQ_CONTEXT interrupt work")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c

index 8ce10d0..d3c687d 100644 (file)
@@ -520,9 +520,7 @@ static void amdgpu_dm_irq_schedule_work(struct amdgpu_device *adev,
                return;
 
        list_for_each_entry (handler_data, handler_list, list) {
-               if (!queue_work(system_highpri_wq, &handler_data->work)) {
-                       continue;
-               } else {
+               if (queue_work(system_highpri_wq, &handler_data->work)) {
                        work_queued = true;
                        break;
                }