[mod_skinny] scan-build: Value stored to 'profile' is never read - channel_outgoing_channel()

This commit is contained in:
Dragos Oancea 2020-02-25 21:24:36 +00:00
parent 42d3100609
commit 40c7d62c42
1 changed files with 0 additions and 1 deletions

View File

@ -1350,7 +1350,6 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
}
*dest++ = '\0';
profile = skinny_find_profile(profile_name);
if (!(profile = skinny_find_profile(profile_name))) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Profile %s\n", profile_name);
cause = SWITCH_CAUSE_UNALLOCATED_NUMBER;