提交 52041338 编写于 作者: V Víctor Manuel Jáquez Leal 提交者: Greg Kroah-Hartman

staging: tidspbridge: simplify mgr_init()

No functional changes.
Signed-off-by: NVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a05c5dc3
......@@ -319,14 +319,9 @@ int mgr_get_dcd_handle(struct mgr_object *mgr_handle,
bool mgr_init(void)
{
bool ret = true;
bool init_dcd = false;
if (refs == 0) {
init_dcd = dcd_init(); /* DCD Module */
if (!init_dcd)
ret = false;
}
if (refs == 0)
ret = dcd_init(); /* DCD Module */
if (ret)
refs++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册