diff mbox series

[v2] drm/mxsfb: Remove brackets for single line if block

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

Commit Message

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

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
Changes since v1:
- Fix typo in commit log

 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);