Commit e00076b7 authored by Michel Dänzer's avatar Michel Dänzer Committed by Greg Kroah-Hartman

reservation: Remove shadowing local variable 'ret'

commit 4eb2440e upstream.

It was causing the return value of fence_is_signaled to be ignored, making
reservation objects signal too early.
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c0f288d
...@@ -402,8 +402,6 @@ reservation_object_test_signaled_single(struct fence *passed_fence) ...@@ -402,8 +402,6 @@ reservation_object_test_signaled_single(struct fence *passed_fence)
int ret = 1; int ret = 1;
if (!test_bit(FENCE_FLAG_SIGNALED_BIT, &lfence->flags)) { if (!test_bit(FENCE_FLAG_SIGNALED_BIT, &lfence->flags)) {
int ret;
fence = fence_get_rcu(lfence); fence = fence_get_rcu(lfence);
if (!fence) if (!fence)
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment