]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/isa/es1688/es1688_lib.c
ALSA: Kill snd_assert() in sound/isa/*
[linux-2.6-omap-h63xx.git] / sound / isa / es1688 / es1688_lib.c
index 1e1e575b1db329f87b289cb4cc57bbb954f1bae0..4fbb508a817f39485406800431c87fc7130c8450 100644 (file)
@@ -1009,7 +1009,8 @@ int snd_es1688_mixer(struct snd_es1688 *chip)
        int err;
        unsigned char reg, val;
 
-       snd_assert(chip != NULL && chip->card != NULL, return -EINVAL);
+       if (snd_BUG_ON(!chip || !chip->card))
+               return -EINVAL;
 
        card = chip->card;