Skip to content

Commit 8054200

Browse files
JasonYanHwRoland Scheidegger
authored andcommitted
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 <[email protected]> Signed-off-by: Roland Scheidegger <[email protected]>
1 parent c594285 commit 8054200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_fence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ bool vmw_fence_obj_signaled(struct vmw_fence_obj *fence)
515515
struct vmw_fence_manager *fman = fman_from_fence(fence);
516516

517517
if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->base.flags))
518-
return 1;
518+
return true;
519519

520520
vmw_fences_update(fman);
521521

0 commit comments

Comments
 (0)