]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/isa/cs423x/cs4236_lib.c
ALSA: Kill snd_assert() in sound/isa/*
[linux-2.6-omap-h63xx.git] / sound / isa / cs423x / cs4236_lib.c
index 33e9cf178b8bcc7290d2d7d84fe505bf45c38565..6a85fdc53b60a716f248ad1c20210f1148732cd6 100644 (file)
@@ -967,7 +967,8 @@ int snd_cs4236_mixer(struct snd_wss *chip)
        int err;
        struct snd_kcontrol_new *kcontrol;
 
-       snd_assert(chip != NULL && chip->card != NULL, return -EINVAL);
+       if (snd_BUG_ON(!chip || !chip->card))
+               return -EINVAL;
        card = chip->card;
        strcpy(card->mixername, snd_wss_chip_id(chip));