mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user