Remove constant conditionals (dead-code).

Some variables are set and never changed, making them constant.  This
means that code in the 'false' block of the conditional is unreachable.

In chan_skinny and res_config_ldap I used preprocessor directive `#if 0`
as I'm unsure if the unreachable code could be enabled in the future.

Change-Id: I62e2aac353d739fb3c983cf768933120f5fba059
This commit is contained in:
Corey Farrell
2017-12-18 16:36:21 -05:00
parent 11a1e07ad2
commit b3e839debd
5 changed files with 19 additions and 52 deletions

View File

@@ -42,7 +42,6 @@ static void manager_system_shutdown(void)
int manager_system_init(void)
{
int ret = 0;
struct stasis_topic *manager_topic;
struct stasis_topic *system_topic;
struct stasis_message_router *message_router;
@@ -67,13 +66,5 @@ int manager_system_init(void)
ast_register_cleanup(manager_system_shutdown);
/* If somehow we failed to add any routes, just shut down the whole
* thing and fail it.
*/
if (ret) {
manager_system_shutdown();
return -1;
}
return 0;
}