]> 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 dab31b2756a608b2e52f60c31058e4e4f19cd306..03391da8c8c7741304fff11f4e8ccc044393e984 100644 (file)
@@ -59,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;