summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-05-07 13:07:14 +0200
committerRoland Scheidegger <sroland@vmware.com>2020-05-16 06:50:37 +0200
commit80542002ccd41f3703a9ae9e8e95cfbaad370db6 (patch)
tree9797ac90fee0459138fb22cf65a9ae7aec05fc20 /drivers/gpu
parentdrm/vmwgfx: remove redundant assignment to variable ret (diff)
downloadlinux-80542002ccd41f3703a9ae9e8e95cfbaad370db6.tar.xz
linux-80542002ccd41f3703a9ae9e8e95cfbaad370db6.zip
drm/vmwgfx: Return true in function vmw_fence_obj_signaled()
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
index 178a6cd1a06f..0f8d29397157 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
@@ -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);