staging: tidspbridge: simplify mgr_init()
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 9 Mar 2012 00:03:49 +0000 (01:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2012 21:21:08 +0000 (13:21 -0800)
No functional changes.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/rmgr/mgr.c

index 938eea5..8a1e928 100644 (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++;