]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/isa/sb/sb_common.c
ALSA: Kill snd_assert() in sound/isa/*
[linux-2.6-omap-h63xx.git] / sound / isa / sb / sb_common.c
index b432d9ae874baba6b52d837b8886eff2dd02fc22..27a65150225168a3f7264c4d6c1c6f8667cc7bfa 100644 (file)
@@ -219,7 +219,8 @@ int snd_sbdsp_create(struct snd_card *card,
                .dev_free =     snd_sbdsp_dev_free,
        };
 
-       snd_assert(r_chip != NULL, return -EINVAL);
+       if (snd_BUG_ON(!r_chip))
+               return -EINVAL;
        *r_chip = NULL;
        chip = kzalloc(sizeof(*chip), GFP_KERNEL);
        if (chip == NULL)