]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/core/init.c
ALSA: Kill snd_assert() in sound/core/*
[linux-2.6-omap-h63xx.git] / sound / core / init.c
index df46bbc25dc2da7dccf2872abbae76837693e3ba..8af467df9245823a2ea5c96981e161d42ed63734 100644 (file)
@@ -545,7 +545,8 @@ int snd_card_register(struct snd_card *card)
 {
        int err;
 
-       snd_assert(card != NULL, return -EINVAL);
+       if (snd_BUG_ON(!card))
+               return -EINVAL;
 #ifndef CONFIG_SYSFS_DEPRECATED
        if (!card->card_dev) {
                card->card_dev = device_create_drvdata(sound_class, card->dev,