diff mbox series

drm/mxsfb: Remove brackets for single line if block

Message ID 20191107181708.22033-1-festevam@gmail.com (mailing list archive)
State New, archived
Headers show
Series drm/mxsfb: Remove brackets for single line if block | expand

Commit Message

Fabio Estevam Nov. 7, 2019, 6:17 p.m. UTC
There is no need for brackets when for a single line inside
the 'if' block, so remove the unneeded brackets. 

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c
index b69ace8bf526..bacd1f2b2fb3 100644
--- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c
+++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c
@@ -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);