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:
Mark Yao
2016-05-10 13:59:57 +08:00
committed by Huang, Tao
parent 09e82f8935
commit cb794081c6

View File

@@ -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;
}