diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:12:14 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:38 -0400 |
commit | da3cec35dd3c31d8706db4bf379372ce70d92118 (patch) | |
tree | 9379edebb1c7abc7a7a92ce3be30a35b77d9aa1d /sound/pci/es1938.c | |
parent | 622207dc31895b4e82c39100db8635d885c795e2 (diff) |
ALSA: Kill snd_assert() in sound/pci/*
Kill snd_assert() in sound/pci/*, 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>
Diffstat (limited to 'sound/pci/es1938.c')
-rw-r--r-- | sound/pci/es1938.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 84fac1fbf103..4cd9a1faaecc 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -860,7 +860,8 @@ static int snd_es1938_capture_copy(struct snd_pcm_substream *substream, | |||
860 | struct es1938 *chip = snd_pcm_substream_chip(substream); | 860 | struct es1938 *chip = snd_pcm_substream_chip(substream); |
861 | pos <<= chip->dma1_shift; | 861 | pos <<= chip->dma1_shift; |
862 | count <<= chip->dma1_shift; | 862 | count <<= chip->dma1_shift; |
863 | snd_assert(pos + count <= chip->dma1_size, return -EINVAL); | 863 | if (snd_BUG_ON(pos + count > chip->dma1_size)) |
864 | return -EINVAL; | ||
864 | if (pos + count < chip->dma1_size) { | 865 | if (pos + count < chip->dma1_size) { |
865 | if (copy_to_user(dst, runtime->dma_area + pos + 1, count)) | 866 | if (copy_to_user(dst, runtime->dma_area + pos + 1, count)) |
866 | return -EFAULT; | 867 | return -EFAULT; |