Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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 snd_msnd ->mode is fmode_t, not mode_t 2011-07-26 12:59:29 -04:00
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 atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
spi
synth
usb ALSA: usb-audio - Fix missing mixer dB information 2011-08-19 07:55:10 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c