linux/sound
Julia Lawall 21ac1f9934 sound: Use BUG_ON
if (...) BUG(); should be replaced with BUG_ON(...) when the test has no
side-effects to allow a definition of BUG_ON that drops the code completely.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@ disable unlikely @ expression E,f; @@

(
  if (<... f(...) ...>) { BUG(); }
|
- if (unlikely(E)) { BUG(); }
+ BUG_ON(E);
)

@@ expression E,f; @@

(
  if (<... f(...) ...>) { BUG(); }
|
- if (E) { BUG(); }
+ BUG_ON(E);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2008-04-24 12:00:22 +02:00
..
aoa [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
arm [ALSA] sound: replace remaining __FUNCTION__ occurences 2008-04-24 12:00:20 +02:00
core [ALSA] sound: replace remaining __FUNCTION__ occurences 2008-04-24 12:00:20 +02:00
drivers [ALSA] pcsp: improve "enable" option handling 2008-04-24 12:00:21 +02:00
i2c [ALSA] AK4114 - listing regs in proc 2008-04-24 12:00:09 +02:00
isa [ALSA] sound: replace remaining __FUNCTION__ occurences 2008-04-24 12:00:20 +02:00
mips [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
oss sound: Use BUG_ON 2008-04-24 12:00:22 +02:00
parisc [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
pci [ALSA] hda-codec - Add internal mic item for ALC268 acer model 2008-04-24 12:00:22 +02:00
pcmcia [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
ppc ALSA: Storage class should be before const qualifier 2008-04-21 22:25:51 +00:00
sh [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
soc [ALSA] sound: replace remaining __FUNCTION__ occurences 2008-04-24 12:00:20 +02:00
sparc [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
spi [ALSA] Add __devinit macro to at73c213 sound driver probe functions 2008-04-24 12:00:11 +02:00
synth [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
usb [ALSA] usb-audio: sort quirks list 2008-04-24 12:00:15 +02:00
ac97_bus.c [ALSA] ac97_bus power management 2007-02-09 09:03:54 +01:00
Kconfig [ALSA] Add SPI devices to ALSA Kconfig and Makefile 2007-10-16 15:57:47 +02:00
last.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
Makefile [ALSA] Add SPI devices to ALSA Kconfig and Makefile 2007-10-16 15:57:47 +02:00
sound_core.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
sound_firmware.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00