Skip to content

Commit

Permalink
staging: tidspbridge: simplify mgr_init()
Browse files Browse the repository at this point in the history
No functional changes.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Víctor Manuel Jáquez Leal authored and Greg Kroah-Hartman committed Mar 9, 2012
1 parent a05c5dc commit 5204133
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/staging/tidspbridge/rmgr/mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 5204133

Please sign in to comment.