Skip to contentSkip to conversation

drm/mxsfb: Remove brackets for single line if block

PATCH New Fabio Estevam 1 participant 1 message Nov 7, 2019

Subsystems (4)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH v2 1/1 drm/mxsfb: Remove brackets for single line if block

There is no need for brackets for a single line inside the 'if' block, so remove the unneeded brackets.

---
Changes since v1:
- Fix typo in commit log

 drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/mxsfb/mxsfb_crtc.c +2 -3
index b69ace8bf526..bacd1f2b2fb3 100644
@@ -326,11 +326,10 @@ void mxsfb_plane_atomic_update(struct mxsfb_drm_private *mxsfb,
 	if (event) {
 		crtc->state->event = NULL;
 
-		if (drm_crtc_vblank_get(crtc) == 0) {
+		if (drm_crtc_vblank_get(crtc) == 0)
 			drm_crtc_arm_vblank_event(crtc, event);
-		} else {
+		else
 			drm_crtc_send_vblank_event(crtc, event);
-		}
 	}
 	spin_unlock_irq(&crtc->dev->event_lock);
 
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel