forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
5a19b178d7
commit
c3cd1badc8
|
@ -276,7 +276,7 @@ static void ad1843_write_multi(struct snd_ad1843 *ad1843, int argcount, ...)
|
||||||
if (reg == -1)
|
if (reg == -1)
|
||||||
reg = fp->reg;
|
reg = fp->reg;
|
||||||
else
|
else
|
||||||
BUG_ON(reg != fp->reg);
|
WARN_ON(reg != fp->reg);
|
||||||
m = ((1 << fp->nbits) - 1) << fp->lo_bit;
|
m = ((1 << fp->nbits) - 1) << fp->lo_bit;
|
||||||
mask |= m;
|
mask |= m;
|
||||||
bits |= (value << fp->lo_bit) & m;
|
bits |= (value << fp->lo_bit) & m;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user