Skip to content

Commit

Permalink
radeon: merge list_del()/list_add_tail() to list_move_tail()
Browse files Browse the repository at this point in the history
Merge list_del() + list_add_tail() to list_move_tail().

Signed-off-by: Nicolas Kaiser <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
nikai3d authored and airlied committed Mar 17, 2011
1 parent 38f1cff commit 3409fc1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/gpu/drm/radeon/radeon_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ int radeon_fence_emit(struct radeon_device *rdev, struct radeon_fence *fence)

trace_radeon_fence_emit(rdev->ddev, fence->seq);
fence->emited = true;
list_del(&fence->list);
list_add_tail(&fence->list, &rdev->fence_drv.emited);
list_move_tail(&fence->list, &rdev->fence_drv.emited);
write_unlock_irqrestore(&rdev->fence_drv.lock, irq_flags);
return 0;
}
Expand Down Expand Up @@ -121,8 +120,7 @@ static bool radeon_fence_poll_locked(struct radeon_device *rdev)
i = n;
do {
n = i->prev;
list_del(i);
list_add_tail(i, &rdev->fence_drv.signaled);
list_move_tail(i, &rdev->fence_drv.signaled);
fence = list_entry(i, struct radeon_fence, list);
fence->signaled = true;
i = n;
Expand Down

0 comments on commit 3409fc1

Please sign in to comment.