OSDN Git Service

drm: Fix checkpatch issue: "WARNING: braces {} are not necessary for single statement...
authorVitor Massaru Iha <vitor@massaru.org>
Mon, 30 Oct 2017 13:36:54 +0000 (11:36 -0200)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 27 Nov 2017 09:51:27 +0000 (09:51 +0000)
Signed-off-by: Vitor Massaru Iha <vitor@massaru.org>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_crtc.c

index 72b22b8..5a5427b 100644 (file)
@@ -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;