[alsa-devel] [PATCH 0/5] Let's kill BUG*()

Takashi Iwai tiwai at suse.de
Tue Nov 5 18:10:38 CET 2013


Hi,

this is a series of trivial patches to kill BUG() and BUG_ON()
in sound/* (except for ASoC codes, which will follow later).

Basically BUG() and BUG_ON() are usless for drivers like sound
drivers, because they stop the whole operation intentionally by
calling panic().  In this patch series, they are replaced with
WARN_ON(), snd_BUG() or something else more soft ones.

 [PATCH 1/5] ALSA: ctxfi: Use WARN_ON() instead of BUG_ON()
 [PATCH 2/5] ALSA: ps3: Use WARN_ON() instead of BUG_ON()
 [PATCH 3/5] ALSA: sparc/cs4231: Use WARN_ON() instead of BUG_ON()
 [PATCH 4/5] ALSA: mips/ad1843: Use WARN_ON() instead of BUG_ON()
 [PATCH 5/5] ALSA: pxa2xx: Replace BUG() with snd_BUG()


Takashi


More information about the Alsa-devel mailing list