Jesper Juhl
2eebb1925d
[PATCH] OSS: cs46xx cleanup and tiny bugfix
...
Here's a patch for cs46xx that
- (mostly) cleans up the cs46xx driver according to CodingStyle
- removes a bunch of pointless casts
- fixes a small, potential use of uninitialized variable, bug
- reduces the size of the compiled code by 36 bytes
- reduces the size of the source file by 1831 bytes
I know I should probably have split this into bits, but since I only
thought of that *after* doing all the edits, splitting it up would have
been a royal pain. And since these are all pretty trivial changes I thought
I'd just submit the one huge patch and hope people could live with it (if
not, then just tell me and I'll split it).
The bug fix that's in there may be hard to spot, so I'll point it out. It's
the
- int val, valsave, mapped, ret;
+ int val, valsave, ret;
+ int mapped = 0;
bit.
Without that change we may use `mapped' uninitialized if, in cs_ioctl, the
first test of "if(state)" is false and the second "if(state)" test is true.
Signed-off-by: Jesper Juhl <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2006-06-23 07:43:04 -07:00
..
cs4281
[PATCH] oss: semaphore to mutex conversion
2006-03-23 07:38:15 -08:00
dmasound
[PATCH] powerpc: fix oops in alsa powermac driver
2006-04-21 22:34:26 +10:00
emu10k1
[PATCH] Last DMA_xBIT_MASK cleanups
2006-04-11 06:18:44 -07:00
.gitignore
kbuild: ignore all generated files for make allmodconfig (x86_64)
2006-02-26 20:15:58 +01:00
ac97.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ac97.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ac97_codec.c
[PATCH] oss: semaphore to mutex conversion
2006-03-23 07:38:15 -08:00
ac97_plugin_ad1980.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
aci.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
aci.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ad1816.c
[PATCH] sound/oss/: cleanups
2005-06-25 16:25:01 -07:00
ad1848.c
[PATCH] ad1848 section fix
2006-05-21 12:59:22 -07:00
ad1848.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ad1848_mixer.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ad1889.c
[PARISC] OSS ad1889: Match register names with ALSA driver
2006-04-21 22:20:31 +00:00
ad1889.h
[PARISC] OSS ad1889: Match register names with ALSA driver
2006-04-21 22:20:31 +00:00
adlib_card.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
aedsp16.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ali5455.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
au1000.c
[PATCH] Remove MODULE_PARM
2006-03-25 08:22:52 -08:00
au1550_ac97.c
[PATCH] Au1550/1200: add missing PSC #define's, make OSS driver use the proper ones
2006-06-23 07:42:56 -07:00
audio.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
audio_syms.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
awe_hw.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
awe_wave.c
[PATCH] OSS: Fix leak in awe_wave, also remove pointless cast.
2006-03-25 08:23:00 -08:00
awe_wave.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
bin2hex.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
btaudio.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
CHANGELOG
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
cmpci.c
[PATCH] cmpci: don't use generic_hweight32()
2006-03-26 08:57:09 -08:00
coproc.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
COPYING
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
cs46xx.c
[PATCH] OSS: cs46xx cleanup and tiny bugfix
2006-06-23 07:43:04 -07:00
cs46xx_wrapper-24.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
cs46xxpm-24.h
[PATCH] oss: remove deprecated PM interface from cs46xx driver
2006-01-06 08:33:41 -08:00
cs46xxpm.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
cs461x.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
cs461x_image.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
cs4232.c
[PATCH] pnp: cs4232: adjust pnp_register_driver signature
2006-03-27 08:44:53 -08:00
dev_table.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
dev_table.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
dm.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
dmabuf.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
es1370.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
es1371.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
esssolo1.c
[PATCH] Replace 0xff.. with correct DMA_xBIT_MASK
2006-03-28 09:16:07 -08:00
forte.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
gus.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
gus_card.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
gus_hw.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
gus_linearvol.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
gus_midi.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
gus_vol.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
gus_wave.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
hal2.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
hal2.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
harmony.c
[PARISC] OSS: Fix build of parisc harmony driver
2006-01-10 21:52:19 -05:00
hex2hex.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
i810_audio.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
ics2101.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ite8172.c
[PATCH] Remove MODULE_PARM
2006-03-25 08:22:52 -08:00
iwmem.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
kahlua.c
[PATCH] drivers/sound/oss: Replace pci_module_init() with pci_register_driver()
2006-01-09 12:13:22 -08:00
Kconfig
[MIPS] Correct HAL2 Kconfig description
2006-06-19 17:39:26 +01:00
mad16.c
Input: mad16 (OSS) - do not carry around gameport code if gameport core
2005-06-01 02:38:46 -05:00
maestro.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
maestro.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
maestro3.c
[PATCH] maestro3 vfree NULL check fixup
2006-03-28 09:16:08 -08:00
maestro3.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
Makefile
[PATCH] ad1980 makefile fix
2005-08-23 18:43:46 -07:00
maui.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
midi_ctrl.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
midi_syms.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
midi_synth.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
midi_synth.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
midibuf.c
[PATCH] timer initialization cleanup: DEFINE_TIMER
2005-09-09 14:03:48 -07:00
mpu401.c
[PATCH] remove redundant NULL checks before kfree() in sound/ and avoid casting pointers about to be kfree()'ed
2005-06-25 16:25:00 -07:00
mpu401.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
msnd.c
[PATCH] vfree does its own NULL check, no need to be explicit in oss/msnd.c
2006-03-28 09:16:08 -08:00
msnd.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
msnd_classic.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
msnd_classic.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
msnd_pinnacle.c
[PATCH] msnd_pinnacle GFP fix
2005-04-24 12:28:34 -07:00
msnd_pinnacle.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
nec_vrc5477.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
nm256.h
[PATCH] nm256 oss build failure
2005-06-25 16:25:01 -07:00
nm256_audio.c
[PATCH] nm256_audio section fix
2006-05-21 12:59:22 -07:00
nm256_coeff.h
[PATCH] sound/oss/: cleanups
2005-06-25 16:25:01 -07:00
opl3.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
opl3.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
opl3_hw.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
opl3sa.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
opl3sa2.c
spelling: s/appropiate/appropriate/
2006-01-15 02:00:17 +01:00
os.h
[PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason
2005-11-09 07:55:57 -08:00
pas2.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
pas2_card.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
pas2_midi.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
pas2_mixer.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
pas2_pcm.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
pss.c
[PATCH] turn many #if $undefined_string into #ifdef $undefined_string
2005-07-27 16:26:08 -07:00
README.FIRST
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
rme96xx.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
rme96xx.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sb.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sb_audio.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sb_card.c
[PATCH] vfree NULL check fixup for sb_card
2006-03-28 09:16:07 -08:00
sb_card.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sb_common.c
[PATCH] remove redundant NULL checks before kfree() in sound/ and avoid casting pointers about to be kfree()'ed
2005-06-25 16:25:00 -07:00
sb_ess.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sb_ess.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sb_midi.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sb_mixer.c
[PATCH] Fix sb_mixer use before validation
2006-03-25 08:22:59 -08:00
sb_mixer.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sequencer.c
[PATCH] no need to check vfree arg for null in oss/sequencer
2006-03-28 09:16:08 -08:00
sequencer_syms.c
[PATCH] sound/oss/sequencer_syms: unexport reprogram_timer
2005-11-07 07:54:08 -08:00
sgalaxy.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sh_dac_audio.c
[PATCH] sound: Remove unneeded kmalloc() return value casts
2006-03-28 09:16:09 -08:00
sonicvibes.c
[PATCH] Replace 0xff.. with correct DMA_xBIT_MASK
2006-03-28 09:16:07 -08:00
sound_calls.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sound_config.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sound_firmware.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sound_syms.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sound_timer.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
soundcard.c
[PATCH] Driver Core: fix up all callers of class_device_create()
2005-10-28 09:52:52 -07:00
soundvers.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
sscape.c
[PATCH] sound/oss/sscape.c: remove dead code
2005-06-25 16:25:03 -07:00
swarm_cs4297a.c
[PATCH] Remove MODULE_PARM
2006-03-25 08:22:52 -08:00
sys_timer.c
[PATCH] timer initialization cleanup: DEFINE_TIMER
2005-09-09 14:03:48 -07:00
trident.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
trident.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
trix.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
tuning.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
uart401.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
uart6850.c
[PATCH] timer initialization cleanup: DEFINE_TIMER
2005-09-09 14:03:48 -07:00
ulaw.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
v_midi.c
[PATCH] sound/oss/: cleanups
2005-06-25 16:25:01 -07:00
v_midi.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
via82cxxx_audio.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
vidc.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
vidc.h
[PATCH] vidc gcc4 fix
2005-08-23 18:43:45 -07:00
vidc_fill.S
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
vwsnd.c
[PATCH] Fix compilation for sound/oss/vwsnd.c
2006-03-26 08:56:58 -08:00
waveartist.c
[PATCH] Remove MODULE_PARM
2006-03-25 08:22:52 -08:00
waveartist.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
wavfront.c
[PATCH] remove some more check_region stuff
2005-10-30 17:37:18 -08:00
wf_midi.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
ymfpci.c
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
ymfpci.h
[PATCH] sem2mutex: sound/oss/
2006-03-23 07:38:13 -08:00
ymfpci_image.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
yss225.c
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
yss225.h
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00