Drop dead assignments

We goto done at the end of these blocks.
This commit is contained in:
Travis Cross 2014-04-30 23:02:03 +00:00
parent e4d807108c
commit 2ae823fb9f
1 changed files with 1 additions and 6 deletions

View File

@ -377,11 +377,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
switch_media_bug_t *bp;
switch_bool_t ok = SWITCH_TRUE;
int prune = 0;
need_codec = 0;
do_resample = 0;
do_bugs = 0;
if (session->bugs && switch_test_flag((*frame), SFF_CNG)) {
switch_thread_rwlock_rdlock(session->bug_rwlock);
for (bp = session->bugs; bp; bp = bp->next) {
@ -522,7 +518,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
if (do_bugs) {
switch_thread_rwlock_wrlock(session->bug_rwlock);
if (!session->bugs) {
do_bugs = 0;
switch_thread_rwlock_unlock(session->bug_rwlock);
goto done;
}