kernel-fxtec-pro1x/sound/oss
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
..
dmasound cleanup after APUS removal 2008-02-06 10:41:01 -08:00
.gitignore
ac97_codec.c sound/oss/ac97_codec.c: restore MODULE_LICENSE 2008-03-30 14:46:11 -07:00
ad1848.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
ad1848.h [PATCH] The scheduled removal of some OSS drivers 2006-10-04 07:55:32 -07:00
ad1848_mixer.h fix file specification in comments 2006-10-03 23:01:26 +02:00
aedsp16.c
au1550_ac97.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
audio.c fix file specification in comments 2006-10-03 23:01:26 +02:00
bin2hex.c
CHANGELOG
coproc.h
dev_table.c [PATCH] kill sound/oss/*_syms.c 2006-10-04 07:55:32 -07:00
dev_table.h [PATCH] kill sound/oss/*_syms.c 2006-10-04 07:55:32 -07:00
dmabuf.c [PATCH] severing poll.h -> mm.h 2006-12-04 02:00:36 -05:00
hal2.c [PATCH] OSS: replace kmalloc()+memset() combos with kzalloc() 2007-02-14 08:09:54 -08:00
hal2.h
hex2hex.c
kahlua.c [PATCH] OSS: replace kmalloc()+memset() combos with kzalloc() 2007-02-14 08:09:54 -08:00
Kconfig Fix file references in documentation and Kconfig 2008-01-22 10:43:36 -08:00
Makefile scheduled OSS driver removal 2008-02-06 10:41:02 -08:00
midi_ctrl.h
midi_synth.c [PATCH] kill sound/oss/*_syms.c 2006-10-04 07:55:32 -07:00
midi_synth.h
midibuf.c [PATCH] kill sound/oss/*_syms.c 2006-10-04 07:55:32 -07:00
mpu401.c mpu401 warning fixes 2007-07-16 09:05:42 -07:00
mpu401.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
msnd.c
msnd.h OSS msnd: fix array overflows 2008-01-14 08:52:23 -08:00
msnd_classic.c
msnd_classic.h
msnd_pinnacle.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
msnd_pinnacle.h
opl3.c more scheduled OSS driver removal 2007-07-16 09:05:40 -07:00
opl3_hw.h
os.h [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
pas2.h
pas2_card.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
pas2_midi.c fix file specification in comments 2006-10-03 23:01:26 +02:00
pas2_mixer.c fix file specification in comments 2006-10-03 23:01:26 +02:00
pas2_pcm.c sound: convert "sound" subdirectory to UTF-8 2007-05-09 08:58:22 +02:00
pss.c sound/oss/pss: set_io_base() always returns success, mark it void 2008-02-06 10:41:00 -08:00
README.FIRST
sb.h
sb_audio.c fix file specification in comments 2006-10-03 23:01:26 +02:00
sb_card.c ALSA: more section mismatches 2007-07-01 12:29:44 -07:00
sb_card.h
sb_common.c sound/oss/sb_common.c: fix casting warning 2008-02-06 10:41:00 -08:00
sb_ess.c
sb_ess.h
sb_midi.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
sb_mixer.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
sb_mixer.h fix file specification in comments 2006-10-03 23:01:26 +02:00
sequencer.c [PATCH] kill sound/oss/*_syms.c 2006-10-04 07:55:32 -07:00
sh_dac_audio.c sh: hp6xx driver compile fixes. 2007-05-07 02:10:54 +00:00
sound_calls.h [PATCH] kill sound/oss/*_syms.c 2006-10-04 07:55:32 -07:00
sound_config.h
sound_firmware.h
sound_timer.c [PATCH] kill sound/oss/*_syms.c 2006-10-04 07:55:32 -07:00
soundcard.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
soundvers.h
sscape.c [PATCH] severing poll.h -> mm.h 2006-12-04 02:00:36 -05:00
swarm_cs4297a.c OSS: constify function pointer tables 2008-02-08 09:22:38 -08:00
sys_timer.c fix file specification in comments 2006-10-03 23:01:26 +02:00
trident.c sound: Use BUG_ON 2008-04-24 12:00:22 +02:00
trident.h [ALSA] sound: replace remaining __FUNCTION__ occurences 2008-04-24 12:00:20 +02:00
trix.c fix file specification in comments 2006-10-03 23:01:26 +02:00
tuning.h [PATCH] The scheduled removal of some OSS drivers 2006-10-04 07:55:32 -07:00
uart401.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
uart6850.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
ulaw.h
v_midi.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
v_midi.h
vidc.c [PATCH] misc arm pt_regs fixes 2006-10-08 12:32:36 -07:00
vidc.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
vidc_fill.S
vwsnd.c [ALSA] sound: replace remaining __FUNCTION__ occurences 2008-04-24 12:00:20 +02:00
waveartist.c [ARM] Remove pointless casts from void pointers, 2008-01-26 14:50:00 +00:00
waveartist.h fix file specification in comments 2006-10-03 23:01:26 +02:00

The modular sound driver patches were funded by Red Hat Software 
(www.redhat.com). The sound driver here is thus a modified version of 
Hannu's code. Please bear that in mind when considering the appropriate
forums for bug reporting. 

Alan Cox