FS-11785 [mod_spandsp] fix dead assignments

This commit is contained in:
Chris Rienzo 2019-04-23 03:01:53 +00:00 committed by Andrey Volk
parent 517985473a
commit 8ac4ddd5bb
3 changed files with 0 additions and 4 deletions

View File

@ -473,7 +473,6 @@ void mod_spandsp_indicate_data(switch_core_session_t *session, switch_bool_t sel
if (locked) { if (locked) {
switch_core_session_rwunlock(target_session); switch_core_session_rwunlock(target_session);
locked = 0;
} }
} }
} }

View File

@ -464,7 +464,6 @@ static switch_bool_t inband_dtmf_callback(switch_media_bug_t *bug, void *user_da
switch_resample_process(pvt->resampler, dp, (int) datalen / 2 / 1); switch_resample_process(pvt->resampler, dp, (int) datalen / 2 / 1);
memcpy(dp, pvt->resampler->to, pvt->resampler->to_len * 2 * 1); memcpy(dp, pvt->resampler->to, pvt->resampler->to_len * 2 * 1);
samples = pvt->resampler->to_len; samples = pvt->resampler->to_len;
datalen = pvt->resampler->to_len * 2 * 1;
} }
dtmf_rx(pvt->dtmf_detect, dp, samples); dtmf_rx(pvt->dtmf_detect, dp, samples);

View File

@ -2061,12 +2061,10 @@ static switch_status_t t38_gateway_on_consume_media(switch_core_session_t *sessi
if (read_fd != FAX_INVALID_SOCKET) { if (read_fd != FAX_INVALID_SOCKET) {
close(read_fd); close(read_fd);
read_fd = FAX_INVALID_SOCKET;
} }
if (write_fd != FAX_INVALID_SOCKET) { if (write_fd != FAX_INVALID_SOCKET) {
close(write_fd); close(write_fd);
write_fd = FAX_INVALID_SOCKET;
} }