diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:12:47 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:40 -0400 |
commit | 5e246b850df563224be26f1d409cf66fd6c968df (patch) | |
tree | 970e7faf60b86cb2c489a08ca506075c398165e5 /sound/mips/au1x00.c | |
parent | da3cec35dd3c31d8706db4bf379372ce70d92118 (diff) |
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>
Diffstat (limited to 'sound/mips/au1x00.c')
-rw-r--r-- | sound/mips/au1x00.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c index fbef38a9604a..1881cec11e78 100644 --- a/sound/mips/au1x00.c +++ b/sound/mips/au1x00.c | |||
@@ -190,14 +190,16 @@ au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, | |||
190 | static void | 190 | static void |
191 | au1000_dma_stop(struct audio_stream *stream) | 191 | au1000_dma_stop(struct audio_stream *stream) |
192 | { | 192 | { |
193 | snd_assert(stream->buffer, return); | 193 | if (snd_BUG_ON(!stream->buffer)) |
194 | return; | ||
194 | disable_dma(stream->dma); | 195 | disable_dma(stream->dma); |
195 | } | 196 | } |
196 | 197 | ||
197 | static void | 198 | static void |
198 | au1000_dma_start(struct audio_stream *stream) | 199 | au1000_dma_start(struct audio_stream *stream) |
199 | { | 200 | { |
200 | snd_assert(stream->buffer, return); | 201 | if (snd_BUG_ON(!stream->buffer)) |
202 | return; | ||
201 | 203 | ||
202 | init_dma(stream->dma); | 204 | init_dma(stream->dma); |
203 | if (get_dma_active_buffer(stream->dma) == 0) { | 205 | if (get_dma_active_buffer(stream->dma) == 0) { |