summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2012-03-09 00:03:49 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-09 21:21:08 (GMT)
commit52041338797a9847f8482cfa2fc8d8c40c629c3a (patch)
tree241c2c39da5b0bd48d9e82480015470e20b0e298 /drivers
parenta05c5dc3fc73c11fbb06c493b1ae6d77c4ac172e (diff)
downloadlinux-52041338797a9847f8482cfa2fc8d8c40c629c3a.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/tidspbridge/rmgr/mgr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/mgr.c b/drivers/staging/tidspbridge/rmgr/mgr.c
index 938eea5..8a1e928 100644
--- a/drivers/staging/tidspbridge/rmgr/mgr.c
+++ b/drivers/staging/tidspbridge/rmgr/mgr.c
@@ -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++;