Commit 52041338 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by Greg Kroah-Hartman

staging: tidspbridge: simplify mgr_init()

No functional changes.
Signed-off-by: default avatarVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a05c5dc3
...@@ -319,14 +319,9 @@ int mgr_get_dcd_handle(struct mgr_object *mgr_handle, ...@@ -319,14 +319,9 @@ int mgr_get_dcd_handle(struct mgr_object *mgr_handle,
bool mgr_init(void) bool mgr_init(void)
{ {
bool ret = true; bool ret = true;
bool init_dcd = false;
if (refs == 0) { if (refs == 0)
init_dcd = dcd_init(); /* DCD Module */ ret = dcd_init(); /* DCD Module */
if (!init_dcd)
ret = false;
}
if (ret) if (ret)
refs++; refs++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment