mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00: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:
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++;
|
||||
|
Loading…
Reference in New Issue
Block a user