reservation: Remove shadowing local variable 'ret'

It was causing the return value of fence_is_signaled to be ignored, making
reservation objects signal too early.

Cc: [email protected]
Reviewed-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
Signed-off-by: Sumit Semwal <[email protected]>
This commit is contained in:
Michel Dänzer 2015-01-22 16:00:17 +09:00 • committed by Sumit Semwal
commit 4eb2440ed6

View file

@ -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;