Skip to contentSkip to conversation

drm/vmwgfx: Remove unneeded conversions to bool

PATCH New Andrew F. Davis 1 participant 1 message Mar 15, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 3/14 drm/vmwgfx: Remove unneeded conversions to bool

Found with scripts/coccinelle/misc/boolconv.cocci.

---
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +1 -1
index d492d57d5309..88b72f738639 100644
@@ -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