[core] scan-build: Value stored to 'pass_fmtp' is never read - switch_core_media_gen_local_sdp()

This commit is contained in:
Dragos Oancea 2020-02-12 21:15:20 +00:00 committed by Andrey Volk
parent e6c52efe64
commit 87ab38d281

View File

@ -10985,7 +10985,6 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
if (v_engine->codec_negotiated) {
const char *of;
payload_map_t *pmap;
//if (!strcasecmp(v_engine->cur_payload_map->rm_encoding, "VP8")) {
@ -11007,12 +11006,6 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
pass_fmtp = NULL;
if (switch_channel_get_partner_uuid(session->channel)) {
if ((of = switch_channel_get_variable_partner(session->channel, "rtp_video_fmtp"))) {
pass_fmtp = of;
}
}
if (ov_fmtp) {
pass_fmtp = ov_fmtp;
} else {