diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-05-07 13:07:14 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2020-05-16 06:50:37 +0200 |
commit | 80542002ccd41f3703a9ae9e8e95cfbaad370db6 (patch) | |
tree | 9797ac90fee0459138fb22cf65a9ae7aec05fc20 /drivers/gpu | |
parent | drm/vmwgfx: remove redundant assignment to variable ret (diff) | |
download | linux-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.c | 2 |
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); |