From 252e798ece04edd7c536c5880060f42e0c8ee2e8 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Tue, 22 Jun 2021 22:28:02 +0300 Subject: [PATCH] alsa: remove unused res variable in alsa_on_timeout_event --- spa/plugins/alsa/alsa-pcm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/alsa/alsa-pcm.c b/spa/plugins/alsa/alsa-pcm.c index 3f31bafd8..b532f887e 100644 --- a/spa/plugins/alsa/alsa-pcm.c +++ b/spa/plugins/alsa/alsa-pcm.c @@ -1456,14 +1456,13 @@ static void alsa_on_timeout_event(struct spa_source *source) struct state *state = source->data; snd_pcm_uframes_t delay, target; uint64_t expire; - int res; 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); check_position_config(state); - if (SPA_UNLIKELY((res = get_status(state, &delay, &target)) < 0)) + if (SPA_UNLIKELY(get_status(state, &delay, &target) < 0)) return; state->current_time = state->next_time;