kernel-ark/sound/core
Yoann Padioleau dd00cc486a some kmalloc/memset ->kzalloc (tree wide)
Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

Here is a short excerpt of the semantic patch performing
this transformation:

@@
type T2;
expression x;
identifier f,fld;
expression E;
expression E1,E2;
expression e1,e2,e3,y;
statement S;
@@

 x =
- kmalloc
+ kzalloc
  (E1,E2)
  ...  when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
- memset((T2)x,0,E1);

@@
expression E1,E2,E3;
@@

- kzalloc(E1 * E2,E3)
+ kcalloc(E1,E2,E3)

[akpm@linux-foundation.org: get kcalloc args the right way around]
Signed-off-by: Yoann Padioleau <padator@wanadoo.fr>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Acked-by: Russell King <rmk@arm.linux.org.uk>
Cc: Bryan Wu <bryan.wu@analog.com>
Acked-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Dave Airlie <airlied@linux.ie>
Acked-by: Roland Dreier <rolandd@cisco.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Acked-by: Pierre Ossman <drzeus-list@drzeus.cx>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Greg KH <greg@kroah.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-19 10:04:50 -07:00
..
oss header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
seq some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
control_compat.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
control.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
device.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
hwdep_compat.c
hwdep.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
info_oss.c
info.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
init.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
isadma.c
Kconfig misc doc and kconfig typos 2007-05-09 08:58:15 +02:00
Makefile
memalloc.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
memory.c
misc.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
pcm_compat.c
pcm_lib.c [ALSA] Fix possible invalid memory access in PCM core 2007-02-09 09:03:31 +01:00
pcm_memory.c [ALSA] pcm core: add prealloc_max file to substream directory to show maximum DMA size 2007-02-09 09:00:13 +01:00
pcm_misc.c
pcm_native.c [ALSA] pcm_native: lockdep warning when launching jack 2007-05-11 16:55:57 +02:00
pcm_timer.c
pcm.c [PATCH] Fix breakage with CONFIG_SYSFS_DEPRECATED 2007-02-09 16:25:48 +01:00
rawmidi_compat.c
rawmidi.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
rtctimer.c [ALSA] is_power_of_2 in rtctimer.c 2007-05-11 16:55:42 +02:00
sgbuf.c
sound_oss.c
sound.c unregister_chrdev(): ignore the return value 2007-07-19 10:04:43 -07:00
timer_compat.c
timer.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00