From: Dragos Oancea Date: Tue, 25 Feb 2020 21:42:20 +0000 (+0000) Subject: [mod_rtmp] scan-build: Value stored to 'status' is never read - RTMP_INVOKE_FUNCTION... X-Git-Tag: v1.10.3^2~86^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f99eecdd03cbe4ba8313a70b7649bc1589858e5f;p=thirdparty%2Ffreeswitch.git [mod_rtmp] scan-build: Value stored to 'status' is never read - RTMP_INVOKE_FUNCTION(rtmp_i_sendevent) --- diff --git a/src/mod/endpoints/mod_rtmp/rtmp_sig.c b/src/mod/endpoints/mod_rtmp/rtmp_sig.c index 42b29fe4c1..810647279d 100644 --- a/src/mod/endpoints/mod_rtmp/rtmp_sig.c +++ b/src/mod/endpoints/mod_rtmp/rtmp_sig.c @@ -850,9 +850,7 @@ RTMP_INVOKE_FUNCTION(rtmp_i_sendevent) if (switch_core_session_queue_event(session_pvt->session, &event) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session_pvt->session), SWITCH_LOG_ERROR, "Couldn't queue event to session\n"); switch_event_destroy(&event); - status = SWITCH_STATUS_FALSE; - } else { - status = SWITCH_STATUS_SUCCESS; + return SWITCH_STATUS_FALSE; } } }