]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/vmwgfx: Return true in function vmw_fence_obj_signaled()
authorJason Yan <yanaijie@huawei.com>
Thu, 7 May 2020 11:07:14 +0000 (19:07 +0800)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 16 May 2020 04:50:37 +0000 (06:50 +0200)
Fix the following coccicheck warning:

drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:518:9-10: WARNING: return of 0/1
in function 'vmw_fence_obj_signaled' with return type bool

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Roland Scheidegger <sroland@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c

index 178a6cd1a06fe77535c470d96c736848bd3131ca..0f8d293971576a4f6d2faf78c6e24e8825457a58 100644 (file)
@@ -515,7 +515,7 @@ bool vmw_fence_obj_signaled(struct vmw_fence_obj *fence)
        struct vmw_fence_manager *fman = fman_from_fence(fence);
 
        if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->base.flags))
-               return 1;
+               return true;
 
        vmw_fences_update(fman);