drm: Fix checkpatch issue: "WARNING: braces {} are not necessary for single statement blocks."

Signed-off-by: Vitor Massaru Iha <vitor@massaru.org>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
This commit is contained in:
Vitor Massaru Iha 2017-10-30 11:36:54 -02:00 committed by Liviu Dudau
parent febae9bc94
commit fa56b3f831

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