From: Chris Rienzo Date: Tue, 23 Apr 2019 14:18:22 +0000 (+0000) Subject: FS-11785 [mod_rtc] fix dead assignment X-Git-Tag: v1.10.0~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bd5b557e5d5df838623171970e23c371efa582d;p=thirdparty%2Ffreeswitch.git FS-11785 [mod_rtc] fix dead assignment --- diff --git a/src/mod/endpoints/mod_rtc/mod_rtc.c b/src/mod/endpoints/mod_rtc/mod_rtc.c index 88fac00482..515bfe3e06 100644 --- a/src/mod/endpoints/mod_rtc/mod_rtc.c +++ b/src/mod/endpoints/mod_rtc/mod_rtc.c @@ -231,11 +231,9 @@ static switch_status_t rtc_receive_message(switch_core_session_t *session, switc { switch_channel_t *channel = switch_core_session_get_channel(session); private_object_t *tech_pvt = switch_core_session_get_private(session); - switch_status_t status = SWITCH_STATUS_SUCCESS; const char *var; if (switch_channel_down(channel) || !tech_pvt) { - status = SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE; } @@ -260,7 +258,7 @@ static switch_status_t rtc_receive_message(switch_core_session_t *session, switc } - return status; + return SWITCH_STATUS_SUCCESS; }