]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/parisc/harmony.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
[linux-2.6-omap-h63xx.git] / sound / parisc / harmony.c
index 99f5483abf2e7efb006a01928edb3b64d0dcf886..41f870f8a11d21390e1caa473326d659274e28fc 100644 (file)
@@ -868,7 +868,8 @@ snd_harmony_mixer_init(struct snd_harmony *h)
        struct snd_card *card = h->card;
        int idx, err;
 
-       snd_assert(h != NULL, return -EINVAL);
+       if (snd_BUG_ON(!h))
+               return -EINVAL;
        strcpy(card->mixername, "Harmony Gain control interface");
 
        for (idx = 0; idx < HARMONY_CONTROLS; idx++) {