From: Dragos Oancea Date: Tue, 25 Feb 2020 21:24:36 +0000 (+0000) Subject: [mod_skinny] scan-build: Value stored to 'profile' is never read - channel_outgoing_c... X-Git-Tag: v1.10.3^2~113^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F428%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_skinny] scan-build: Value stored to 'profile' is never read - channel_outgoing_channel() --- diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 21fc7caf5c..795fb09d96 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -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;