ALSA: Kill snd_assert() in other places
Kill snd_assert() in other places, either removed or replaced with if () with snd_BUG_ON(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
committed by
Jaroslav Kysela
parent
da3cec35dd
commit
5e246b850d
@@ -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();
|
||||
|
Reference in New Issue
Block a user