staging: tidspbridge: simplify mgr_init()

No functional changes.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Víctor Manuel Jáquez Leal 2012-03-09 01:03:49 +01:00 committed by Greg Kroah-Hartman
parent a05c5dc3fc
commit 5204133879

View File

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