Skip to content

Commit

Permalink
drm/amdgpu/display: remove redundant continue statement
Browse files Browse the repository at this point in the history
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: b6f91fc ("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>
  • Loading branch information
Colin Ian King authored and Alex Deucher committed Mar 5, 2021
1 parent d0c0485 commit 08f3ddd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 08f3ddd

Please sign in to comment.