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