fix warning:
warning: 'ret' may be used uninitialized in this function
Change-Id: I743ed9788366322beeceddd556fae0c2a7cdd463
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
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;
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;
}