mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 19:51:25 -04:00
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:
committed by
Greg Kroah-Hartman
parent
a05c5dc3fc
commit
5204133879
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user