mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-11 08:30:31 +00:00
Remove logically dead code in pulse_open (success always 0 in this case). [Coverity]
This commit is contained in:
@@ -462,7 +462,6 @@ static int pulse_open(const char *device)
|
||||
goto unlock_and_fail;
|
||||
}
|
||||
|
||||
success = 0;
|
||||
while (pa_operation_get_state(o) != PA_OPERATION_DONE) {
|
||||
CHECK_DEAD_GOTO(fail, 1);
|
||||
pa_threaded_mainloop_wait(mainloop);
|
||||
@@ -470,11 +469,6 @@ static int pulse_open(const char *device)
|
||||
|
||||
pa_operation_unref(o);
|
||||
|
||||
if (!success) {
|
||||
fprintf(stderr, "pa_context_subscribe() failed: %s", pa_strerror(pa_context_errno(context)));
|
||||
goto unlock_and_fail;
|
||||
}
|
||||
|
||||
do_trigger = 0;
|
||||
written = 0;
|
||||
time_offset_msec = 0;
|
||||
|
||||
Reference in New Issue
Block a user