]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/sparc/cs4231.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / sparc / cs4231.c
index 1c4797be72ee774a54b6e3dd7ec8b0e476ee2381..791d2fb821d17b40495a1cdfc127016752ba6790 100644 (file)
@@ -1560,7 +1560,8 @@ static int __init snd_cs4231_mixer(struct snd_card *card)
        struct snd_cs4231 *chip = card->private_data;
        int err, idx;
 
-       snd_assert(chip != NULL && chip->pcm != NULL, return -EINVAL);
+       if (snd_BUG_ON(!chip || !chip->pcm))
+               return -EINVAL;
 
        strcpy(card->mixername, chip->pcm->name);