mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 19:52:35 +00:00
Remove tautological condition check
We already decided to goto end if node is null, so it cannot be null here.
This commit is contained in:
parent
bf59d57dab
commit
84fe7b0794
@ -1459,14 +1459,10 @@ static void *SWITCH_THREAD_FUNC outbound_ringall_thread_run(switch_thread_t *thr
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node) {
|
|
||||||
switch_mutex_lock(node->update_mutex);
|
switch_mutex_lock(node->update_mutex);
|
||||||
node->busy = 0;
|
node->busy = 0;
|
||||||
node->ring_consumer_count = 1;
|
node->ring_consumer_count = 1;
|
||||||
switch_mutex_unlock(node->update_mutex);
|
switch_mutex_unlock(node->update_mutex);
|
||||||
} else {
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
SWITCH_STANDARD_STREAM(stream2);
|
SWITCH_STANDARD_STREAM(stream2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user