From: Víctor Manuel Jáquez Leal Date: Fri, 9 Mar 2012 00:03:49 +0000 (+0100) Subject: staging: tidspbridge: simplify mgr_init() X-Git-Tag: MMI-PSA29.97-13-9~17268^2~26 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52041338797a9847f8482cfa2fc8d8c40c629c3a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: tidspbridge: simplify mgr_init() No functional changes. Signed-off-by: Víctor Manuel Jáquez Leal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/tidspbridge/rmgr/mgr.c b/drivers/staging/tidspbridge/rmgr/mgr.c index 938eea5aaaf9..8a1e9287cff6 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++;