linux-stable-rt/sound
Julia Lawall de75577c8c ALSA: sound/aoa/fabrics/layout.c: remove unneeded kfree
The label outnodev is only used when kzalloc has not yet taken place or has
failed, so there is no need for the call for kfree under this label.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier x;
expression E1!=0,E2,E3,E4;
statement S;
iterator I;
@@

(
if (...) { ... when != kfree(x)
               when != x = E3
               when != E3 = x
*  return ...;
 }
... when != x = E2
    when != I(...,x,...) S
if (...) { ... when != x = E4
 kfree(x); ... return ...; }
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-08-20 09:27:04 +02:00
..
aoa ALSA: sound/aoa/fabrics/layout.c: remove unneeded kfree 2011-08-20 09:27:04 +02:00
arm
atmel
core Merge branch 'fix/kconfig' into for-linus 2011-08-08 14:30:29 +02:00
drivers
firewire
i2c [media] tea575x: remove useless input ioctls 2011-07-27 17:53:08 -03:00
isa
mips
oss sound: pss - don't use the deprecated function check_region 2011-08-08 14:29:36 +02:00
parisc
pci ALSA: hda - Fix error check from snd_hda_get_conn_index() in patch_cirrus.c 2011-08-20 09:24:54 +02:00
pcmcia
ppc
sh
soc ASoC: Fix compile warning in wm8750.c 2011-08-12 18:22:10 +02:00
sparc
spi
synth
usb ALSA: usb-audio - Fix missing mixer dB information 2011-08-19 07:55:10 +02:00
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c
sound_firmware.c