drm/vmwgfx: Remove unneeded conversions to bool
Subsystems (4)
PATCH 3/14 drm/vmwgfx: Remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by Andrew F. Davis <[email protected]>
--- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +1 -1
@@ -234,7 +234,7 @@ int vmw_du_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) {struct vmw_private *dev_priv =vmw_priv (crtc->dev);struct vmw_display_unit *du =vmw_crtc_to_du (crtc); -bool shown = du->cursor_surface || du->cursor_dmabuf ? true : false; +bool shown = du->cursor_surface || du->cursor_dmabuf; du->cursor_x = x + du->set_gui_x; du->cursor_y = y + du->set_gui_y;
Signature · 1 line
2.11.0