]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/isa/sb/sb16_main.c
ALSA: Kill snd_assert() in sound/isa/*
[linux-2.6-omap-h63xx.git] / sound / isa / sb / sb16_main.c
index f7e8192270ae1796a302b1893f3b18136a1f8bee..2a6cc1cfe945a6f731690c06b97026b1e2ef1d65 100644 (file)
@@ -669,7 +669,8 @@ static int snd_sb16_capture_close(struct snd_pcm_substream *substream)
 static int snd_sb16_set_dma_mode(struct snd_sb *chip, int what)
 {
        if (chip->dma8 < 0 || chip->dma16 < 0) {
-               snd_assert(what == 0, return -EINVAL);
+               if (snd_BUG_ON(what))
+                       return -EINVAL;
                return 0;
        }
        if (what == 0) {