diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-11-05 09:03:05 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-06 02:35:16 -0500 |
commit | c3cd1badc86c62f64f7e1d7034b078cb7e9b254b (patch) | |
tree | 9e9b652307ae38c25a4f8782cb34fe80f555ce83 /sound/mips | |
parent | 5a19b178d7b4dd162b3d4c7e729f30348f2eb177 (diff) |
ALSA: mips/ad1843: Use WARN_ON() instead of BUG_ON()
BUG_ON() is rather useless for debugging as it leads to panic().
Use WARN_ON() and handle the error cases accordingly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/mips')
-rw-r--r-- | sound/mips/ad1843.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mips/ad1843.c b/sound/mips/ad1843.c index c624510ec374..586907500ca5 100644 --- a/sound/mips/ad1843.c +++ b/sound/mips/ad1843.c | |||
@@ -276,7 +276,7 @@ static void ad1843_write_multi(struct snd_ad1843 *ad1843, int argcount, ...) | |||
276 | if (reg == -1) | 276 | if (reg == -1) |
277 | reg = fp->reg; | 277 | reg = fp->reg; |
278 | else | 278 | else |
279 | BUG_ON(reg != fp->reg); | 279 | WARN_ON(reg != fp->reg); |
280 | m = ((1 << fp->nbits) - 1) << fp->lo_bit; | 280 | m = ((1 << fp->nbits) - 1) << fp->lo_bit; |
281 | mask |= m; | 281 | mask |= m; |
282 | bits |= (value << fp->lo_bit) & m; | 282 | bits |= (value << fp->lo_bit) & m; |