]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm plug plugin: remove duplicated expression
authorClemens Ladisch <clemens@ladisch.de>
Mon, 14 Jan 2008 07:49:35 +0000 (08:49 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 14 Jan 2008 07:49:35 +0000 (08:49 +0100)
Remove a needlessly duplicated expression.

src/pcm/pcm_plug.c

index ee74f44f7ff0f3b811096bf788fa8ea169dc1342..561e1636a8cd3e5bdde77562bd140455eaa88ae4 100644 (file)
@@ -708,7 +708,7 @@ static int snd_pcm_plug_hw_refine_schange(snd_pcm_t *pcm, snd_pcm_hw_params_t *p
        const snd_interval_t *srate, *crate;
 
        if (plug->srate == -2 ||
-           (pcm->mode & pcm->mode & SND_PCM_NO_AUTO_RESAMPLE) ||
+           (pcm->mode & SND_PCM_NO_AUTO_RESAMPLE) ||
            (params->flags & SND_PCM_HW_PARAMS_NORESAMPLE))
                links |= SND_PCM_HW_PARBIT_RATE;
        else {