Skip to content

Commit dd42554

Browse files
author
Tian Tao
committed
drm/vc4: Handing the return value of drm_universal_plane_init
Handing the return value of drm_universal_plane_init to fix the following W=1 kernel build warning(s): vc4_plane.c: In function ‘vc4_plane_init’: vc4_plane.c:1340:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/1599811777-34093-1-git-send-email-tiantao6@hisilicon.com
1 parent 3312be8 commit dd42554

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/gpu/drm/vc4/vc4_plane.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,8 @@ struct drm_plane *vc4_plane_init(struct drm_device *dev,
13611361
&vc4_plane_funcs,
13621362
formats, ARRAY_SIZE(formats),
13631363
modifiers, type, NULL);
1364+
if (ret)
1365+
return ERR_PTR(ret);
13641366

13651367
drm_plane_helper_add(plane, &vc4_plane_helper_funcs);
13661368

0 commit comments

Comments
 (0)