FS-11785 [mod_rtc] fix dead assignment

This commit is contained in:
Chris Rienzo 2019-04-23 14:18:22 +00:00 committed by Andrey Volk
parent 1f05e5e8be
commit 0bd5b557e5

View 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); switch_channel_t *channel = switch_core_session_get_channel(session);
private_object_t *tech_pvt = switch_core_session_get_private(session); private_object_t *tech_pvt = switch_core_session_get_private(session);
switch_status_t status = SWITCH_STATUS_SUCCESS;
const char *var; const char *var;
if (switch_channel_down(channel) || !tech_pvt) { if (switch_channel_down(channel) || !tech_pvt) {
status = SWITCH_STATUS_FALSE;
return 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;
} }