]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
reservation: Remove shadowing local variable 'ret'
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 22 Jan 2015 07:00:17 +0000 (16:00 +0900)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 22 Jan 2015 10:59:31 +0000 (16:29 +0530)
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>
drivers/dma-buf/reservation.c

index 807ef155525561e0b51a03a9e43a4f77d5ac6107..39920d77f288d7802c054130acf72caa8f40465d 100644 (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;