linux/sound/aoa
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
..
codecs Revert wrong fixes for common misspellings 2011-04-26 23:31:11 -07:00
core sound: don't use flush_scheduled_work() 2010-12-13 09:22:44 +01:00
fabrics ALSA: sound/aoa/fabrics/layout.c: remove unneeded kfree 2011-08-20 09:27:04 +02:00
soundbus treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00
aoa-gpio.h ALSA: snd-aoa: handle master-amp if present 2009-01-15 18:28:37 +01:00
aoa.h [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
Kconfig sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
Makefile [PATCH] aoa: fix when all is built into the kernel 2006-07-10 13:24:19 -07:00