linux/sound/core/seq
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
..
instr [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
oss header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
Makefile
seq.c [ALSA] Clean up EXPORT_SYMBOL()s in snd-seq module 2006-06-22 21:32:53 +02:00
seq_clientmgr.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
seq_clientmgr.h [ALSA] semaphore -> mutex (core part) 2006-03-22 10:24:50 +01:00
seq_compat.c
seq_device.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
seq_dummy.c [ALSA] Remove zero-initialization of static variables 2006-06-22 21:33:45 +02:00
seq_fifo.c
seq_fifo.h
seq_info.c [ALSA] Fix disconnection of proc interface 2006-09-23 10:36:48 +02:00
seq_info.h
seq_instr.c [ALSA] semaphore -> mutex (core part) 2006-03-22 10:24:50 +01:00
seq_lock.c [ALSA] Clean up EXPORT_SYMBOL()s in snd-seq module 2006-06-22 21:32:53 +02:00
seq_lock.h
seq_memory.c [ALSA] use the roundup macro 2006-12-20 08:55:37 +01:00
seq_memory.h spelling fixes 2006-06-26 18:35:02 +02:00
seq_midi.c [ALSA] rawmidi: add get_port_info callback for sequencer information flags 2006-06-22 21:33:20 +02:00
seq_midi_emul.c
seq_midi_event.c
seq_ports.c [ALSA] Fix possible deadlocks in sequencer at removal of ports 2007-02-09 09:03:58 +01:00
seq_ports.h
seq_prioq.c
seq_prioq.h
seq_queue.c [ALSA] semaphore -> mutex (core part) 2006-03-22 10:24:50 +01:00
seq_queue.h [ALSA] semaphore -> mutex (core part) 2006-03-22 10:24:50 +01:00
seq_system.c
seq_system.h
seq_timer.c
seq_timer.h
seq_virmidi.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00