2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/sound
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 <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-23 07:43:04 -07:00
..
aoa [ALSA] aoa driver - Kconfig - remove spaces for SND!=n 2006-06-22 21:34:44 +02:00
arm [ALSA] Remove zero-initialization of static variables 2006-06-22 21:33:45 +02:00
core [ALSA] Remove nested mutexes in seq_ports.c 2006-06-22 21:34:42 +02:00
drivers [ALSA] virmidi: revert erroneous removal of zero initialization 2006-06-22 21:34:12 +02:00
i2c [ALSA] Remove unneeded read/write_size fields in proc text ops 2006-06-22 21:33:09 +02:00
isa [ALSA] fix potential NULL pointer deref in snd_sb8dsp_midi_interrupt() 2006-06-22 21:34:22 +02:00
mips [ALSA] AMD Au1x00: AC'97 controller is memory mapped 2006-03-22 10:43:28 +01:00
oss [PATCH] OSS: cs46xx cleanup and tiny bugfix 2006-06-23 07:43:04 -07:00
parisc [ALSA] Remove xxx_t typedefs: PARISC Harmony 2006-01-03 12:20:09 +01:00
pci [ALSA] hda-codec - Show EAPD and pin-detection capabilities in proc 2006-06-22 21:34:43 +02:00
pcmcia [ALSA] sound/vxpocket: fix printk warning 2006-06-22 21:34:15 +02:00
ppc [ALSA] Remove ppc/toonie.c 2006-06-22 21:34:41 +02:00
sparc [ALSA] Remove zero-initialization of static variables 2006-06-22 21:33:45 +02:00
synth [ALSA] NULL pointer dereference in sound/synth/emux/soundfont.c 2006-06-22 21:34:05 +02:00
usb [ALSA] USB midi: Remove duplicate CS_AUDIO_* #defines 2006-06-22 21:34:31 +02:00
Kconfig [ALSA] snd-aoa: add snd-aoa 2006-06-22 21:34:38 +02:00
last.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [ALSA] snd-aoa: add snd-aoa 2006-06-22 21:34:38 +02:00
sound_core.c [PATCH] mark f_ops const in the inode 2006-03-28 09:16:05 -08:00
sound_firmware.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00