Drop dead assignments
We goto done at the end of these blocks.
This commit is contained in:
parent
e4d807108c
commit
2ae823fb9f
|
@ -378,10 +378,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
|
||||||
switch_bool_t ok = SWITCH_TRUE;
|
switch_bool_t ok = SWITCH_TRUE;
|
||||||
int prune = 0;
|
int prune = 0;
|
||||||
|
|
||||||
need_codec = 0;
|
|
||||||
do_resample = 0;
|
|
||||||
do_bugs = 0;
|
|
||||||
|
|
||||||
if (session->bugs && switch_test_flag((*frame), SFF_CNG)) {
|
if (session->bugs && switch_test_flag((*frame), SFF_CNG)) {
|
||||||
switch_thread_rwlock_rdlock(session->bug_rwlock);
|
switch_thread_rwlock_rdlock(session->bug_rwlock);
|
||||||
for (bp = session->bugs; bp; bp = bp->next) {
|
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) {
|
if (do_bugs) {
|
||||||
switch_thread_rwlock_wrlock(session->bug_rwlock);
|
switch_thread_rwlock_wrlock(session->bug_rwlock);
|
||||||
if (!session->bugs) {
|
if (!session->bugs) {
|
||||||
do_bugs = 0;
|
|
||||||
switch_thread_rwlock_unlock(session->bug_rwlock);
|
switch_thread_rwlock_unlock(session->bug_rwlock);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue