]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11785 [mod_rtc] fix dead assignment
authorChris Rienzo <chris@signalwire.com>
Tue, 23 Apr 2019 14:18:22 +0000 (14:18 +0000)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 17:49:41 +0000 (21:49 +0400)
src/mod/endpoints/mod_rtc/mod_rtc.c

index 88fac0048240a454f9fb3da5a282e18278a105f5..515bfe3e0623637bbc63d95937769fe555934eba 100644 (file)
@@ -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;
 
 }