]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/echoaudio/darla20_dsp.c
ALSA: Kill snd_assert() in sound/pci/*
[linux-2.6-omap-h63xx.git] / sound / pci / echoaudio / darla20_dsp.c
index 4159e3bc186f359ab3076dff75ce14c9f02b870b..29043301ebb867aaaf32f0b6221905407e0f5a0f 100644 (file)
@@ -34,7 +34,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
        int err;
 
        DE_INIT(("init_hw() - Darla20\n"));
-       snd_assert((subdevice_id & 0xfff0) == DARLA20, return -ENODEV);
+       if (snd_BUG_ON((subdevice_id & 0xfff0) != DARLA20))
+               return -ENODEV;
 
        if ((err = init_dsp_comm_page(chip))) {
                DE_INIT(("init_hw - could not initialize DSP comm page\n"));