mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 13:07:06 +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:
1 parent
bf59d57dab
commit
84fe7b0794
1 file changed
+4
-8
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user