From: Vitor Massaru Iha Date: Mon, 30 Oct 2017 13:36:54 +0000 (-0200) Subject: drm: Fix checkpatch issue: "WARNING: braces {} are not necessary for single statement... X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fa56b3f83177e1ad60815f750dd3816bd4c25677;p=linux.git drm: Fix checkpatch issue: "WARNING: braces {} are not necessary for single statement blocks." Signed-off-by: Vitor Massaru Iha Signed-off-by: Liviu Dudau --- diff --git a/drivers/gpu/drm/arm/hdlcd_crtc.c b/drivers/gpu/drm/arm/hdlcd_crtc.c index 72b22b805412b..5a5427bbd70e4 100644 --- a/drivers/gpu/drm/arm/hdlcd_crtc.c +++ b/drivers/gpu/drm/arm/hdlcd_crtc.c @@ -317,9 +317,8 @@ static struct drm_plane *hdlcd_plane_init(struct drm_device *drm) formats, ARRAY_SIZE(formats), NULL, DRM_PLANE_TYPE_PRIMARY, NULL); - if (ret) { + if (ret) return ERR_PTR(ret); - } drm_plane_helper_add(plane, &hdlcd_plane_helper_funcs); hdlcd->plane = plane;