]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/ice1712/ak4xxx.c
ALSA: Kill snd_assert() in sound/pci/*
[linux-2.6-omap-h63xx.git] / sound / pci / ice1712 / ak4xxx.c
index a1aba0d7d0e4aeda2da187631350e71c106add0d..03391da8c8c7741304fff11f4e8ccc044393e984 100644 (file)
@@ -21,7 +21,6 @@
  *
  */      
 
-#include <sound/driver.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
@@ -60,7 +59,8 @@ static void snd_ice1712_akm4xxx_write(struct snd_akm4xxx *ak, int chip,
        struct snd_ak4xxx_private *priv = (void *)ak->private_value[0];
        struct snd_ice1712 *ice = ak->private_data[0];
 
-       snd_assert(chip >= 0 && chip < 4, return);
+       if (snd_BUG_ON(chip < 0 || chip >= 4))
+               return;
 
        tmp = snd_ice1712_gpio_read(ice);
        tmp |= priv->add_flags;