]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: remove dead assignments from snd_pcm_rate_(commit_area|grab_next_period)
authorAlex Henrie <alexhenrie24@gmail.com>
Sat, 26 Dec 2020 21:35:44 +0000 (14:35 -0700)
committerTakashi Iwai <tiwai@suse.de>
Sun, 27 Dec 2020 08:27:26 +0000 (09:27 +0100)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_rate.c

index 5bf7dbb94a613e0ce21d743b5f2c64908e1a7783..dc38e95e11167f254cf367bc452fba74b6fe1319 100644 (file)
@@ -746,7 +746,6 @@ static int snd_pcm_rate_commit_area(snd_pcm_t *pcm, snd_pcm_rate_t *rate,
                if (result < 0)
                        return result;
              __partial:
-               xfer = 0;
                cont = slave_frames;
                if (cont > slave_size)
                        cont = slave_size;
@@ -846,7 +845,6 @@ static int snd_pcm_rate_grab_next_period(snd_pcm_t *pcm, snd_pcm_uframes_t hw_of
                if (result < 0)
                        return result;
              __partial:
-               xfer = 0;
                cont = slave_frames;
                if (cont > rate->gen.slave->period_size)
                        cont = rate->gen.slave->period_size;