mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
847b19a39e
commit
4eb2440ed6
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue