mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 02:24:57 +08:00
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:
parent
febae9bc94
commit
fa56b3f831
@ -317,9 +317,8 @@ static struct drm_plane *hdlcd_plane_init(struct drm_device *drm)
|
|||||||
formats, ARRAY_SIZE(formats),
|
formats, ARRAY_SIZE(formats),
|
||||||
NULL,
|
NULL,
|
||||||
DRM_PLANE_TYPE_PRIMARY, NULL);
|
DRM_PLANE_TYPE_PRIMARY, NULL);
|
||||||
if (ret) {
|
if (ret)
|
||||||
return ERR_PTR(ret);
|
return ERR_PTR(ret);
|
||||||
}
|
|
||||||
|
|
||||||
drm_plane_helper_add(plane, &hdlcd_plane_helper_funcs);
|
drm_plane_helper_add(plane, &hdlcd_plane_helper_funcs);
|
||||||
hdlcd->plane = plane;
|
hdlcd->plane = plane;
|
||||||
|
Loading…
Reference in New Issue
Block a user