]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/via82xx_modem.c
ALSA: Kill snd_assert() in sound/pci/*
[linux-2.6-omap-h63xx.git] / sound / pci / via82xx_modem.c
index 31f64ee398820c62ffb8c9b51318a2c4e122e9b0..640c338ce0ab11488e57d2e10cc01bfe43137e36 100644 (file)
@@ -612,7 +612,8 @@ static snd_pcm_uframes_t snd_via686_pcm_pointer(struct snd_pcm_substream *substr
        struct viadev *viadev = substream->runtime->private_data;
        unsigned int idx, ptr, count, res;
 
-       snd_assert(viadev->tbl_entries, return 0);
+       if (snd_BUG_ON(!viadev->tbl_entries))
+               return 0;
        if (!(inb(VIADEV_REG(viadev, OFFSET_STATUS)) & VIA_REG_STAT_ACTIVE))
                return 0;