]> err.no Git - linux-2.6/blobdiff - sound/pci/cs46xx/dsp_spos_scb_lib.c
[ALSA] sound/pci/cs46xx/: fix an off-by-one
[linux-2.6] / sound / pci / cs46xx / dsp_spos_scb_lib.c
index 343f51d5311b88eb2d147dedd76d380952a796c0..eded4dfeba1210fe307d7f526e39d3c1f0856ed1 100644 (file)
@@ -24,7 +24,6 @@
 #include <sound/driver.h>
 #include <asm/io.h>
 #include <linux/delay.h>
-#include <linux/pci.h>
 #include <linux/pm.h>
 #include <linux/init.h>
 #include <linux/slab.h>
@@ -1481,7 +1480,7 @@ void cs46xx_dsp_destroy_pcm_channel (struct snd_cs46xx * chip,
        if (!pcm_channel->src_scb->ref_count) {
                cs46xx_dsp_remove_scb(chip,pcm_channel->src_scb);
 
-               snd_assert (pcm_channel->src_slot >= 0 && pcm_channel->src_slot <= DSP_MAX_SRC_NR,
+               snd_assert (pcm_channel->src_slot >= 0 && pcm_channel->src_slot < DSP_MAX_SRC_NR,
                            return );
 
                ins->src_scb_slots[pcm_channel->src_slot] = 0;