diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-09-11 16:09:37 +0800 |
---|---|---|
committer | Tian Tao <tiantao6@hisilicon.com> | 2020-09-16 04:48:37 -0400 |
commit | dd425545a8cc57ae99515e771e87a4465e2f43dc (patch) | |
tree | 352820c8b4ec40fcabd781ca7e539c4d112537a2 /drivers/gpu/drm | |
parent | 3312be8f6fc8a8dc7cef01986dbd436eab7af0f7 (diff) | |
download | linux-stable-dd425545a8cc57ae99515e771e87a4465e2f43dc.tar.gz linux-stable-dd425545a8cc57ae99515e771e87a4465e2f43dc.tar.bz2 linux-stable-dd425545a8cc57ae99515e771e87a4465e2f43dc.zip |
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
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_plane.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 89543fa8ca4d..6b39cc2ca18d 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -1361,6 +1361,8 @@ struct drm_plane *vc4_plane_init(struct drm_device *dev, &vc4_plane_funcs, formats, ARRAY_SIZE(formats), modifiers, type, NULL); + if (ret) + return ERR_PTR(ret); drm_plane_helper_add(plane, &vc4_plane_helper_funcs); |