]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/sh/aica.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / sh / aica.c
index 54df8baf916f4f8462c0a44105bf49c6c0bb3e6d..55031d0a6558a7ca1cebd330ce676f4eddef99af 100644 (file)
@@ -106,7 +106,8 @@ static void spu_memset(u32 toi, u32 what, int length)
 {
        int i;
        unsigned long flags;
-       snd_assert(length % 4 == 0, return);
+       if (snd_BUG_ON(length % 4))
+               return;
        for (i = 0; i < length; i++) {
                if (!(i % 8))
                        spu_write_wait();