mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
drm/rockchip: vop: fix compile warning
fix warning:
warning: 'ret' may be used uninitialized in this function
Change-Id: I743ed9788366322beeceddd556fae0c2a7cdd463
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -1345,7 +1345,8 @@ static int vop_create_crtc(struct vop *vop)
|
||||
win->type != DRM_PLANE_TYPE_CURSOR)
|
||||
continue;
|
||||
|
||||
if (vop_plane_init(vop, win, 0))
|
||||
ret = vop_plane_init(vop, win, 0);
|
||||
if (ret)
|
||||
goto err_cleanup_planes;
|
||||
|
||||
plane = &win->base;
|
||||
@@ -1374,7 +1375,8 @@ static int vop_create_crtc(struct vop *vop)
|
||||
if (win->type != DRM_PLANE_TYPE_OVERLAY)
|
||||
continue;
|
||||
|
||||
if (vop_plane_init(vop, win, possible_crtcs))
|
||||
ret = vop_plane_init(vop, win, possible_crtcs);
|
||||
if (ret)
|
||||
goto err_cleanup_crtc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user