Skip to content

Commit

Permalink
reservation: Remove shadowing local variable 'ret'
Browse files Browse the repository at this point in the history
It was causing the return value of fence_is_signaled to be ignored, making
reservation objects signal too early.

Cc: stable@vger.kernel.org
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
  • Loading branch information
Michel Dänzer authored and sumitsemwal committed Jan 22, 2015
1 parent 847b19a commit 4eb2440
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/dma-buf/reservation.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,6 @@ reservation_object_test_signaled_single(struct fence *passed_fence)
int ret = 1;

if (!test_bit(FENCE_FLAG_SIGNALED_BIT, &lfence->flags)) {
int ret;

fence = fence_get_rcu(lfence);
if (!fence)
return -1;
Expand Down

0 comments on commit 4eb2440

Please sign in to comment.