]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/i2c/l3/uda1341.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / i2c / l3 / uda1341.c
index 1f4942ea141433dfef8569fa3c3f3e478688ffb7..9840eb43648d07e5a05a2a80c8bd3c1406d6aba3 100644 (file)
@@ -771,7 +771,8 @@ int __init snd_chip_uda1341_mixer_new(struct snd_card *card, struct l3_client **
        struct l3_client *clnt;
        int idx, err;
 
-       snd_assert(card != NULL, return -EINVAL);
+       if (snd_BUG_ON(!card))
+               return -EINVAL;
 
        clnt = kzalloc(sizeof(*clnt), GFP_KERNEL);
        if (clnt == NULL)