mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
alsa: remove unused res variable in alsa_on_timeout_event
This commit is contained in:
parent
5ee9133b60
commit
252e798ece
1 changed files with 1 additions and 2 deletions
|
|
@ -1456,14 +1456,13 @@ static void alsa_on_timeout_event(struct spa_source *source)
|
||||||
struct state *state = source->data;
|
struct state *state = source->data;
|
||||||
snd_pcm_uframes_t delay, target;
|
snd_pcm_uframes_t delay, target;
|
||||||
uint64_t expire;
|
uint64_t expire;
|
||||||
int res;
|
|
||||||
|
|
||||||
if (SPA_UNLIKELY(state->started && spa_system_timerfd_read(state->data_system, state->timerfd, &expire) < 0))
|
if (SPA_UNLIKELY(state->started && spa_system_timerfd_read(state->data_system, state->timerfd, &expire) < 0))
|
||||||
spa_log_warn(state->log, NAME" %p: error reading timerfd: %m", state);
|
spa_log_warn(state->log, NAME" %p: error reading timerfd: %m", state);
|
||||||
|
|
||||||
check_position_config(state);
|
check_position_config(state);
|
||||||
|
|
||||||
if (SPA_UNLIKELY((res = get_status(state, &delay, &target)) < 0))
|
if (SPA_UNLIKELY(get_status(state, &delay, &target) < 0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
state->current_time = state->next_time;
|
state->current_time = state->next_time;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue