kernel-fxtec-pro1x/drivers/sbus/char
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
..
bbc_envctrl.c Add common orderly_poweroff() 2007-07-18 08:47:40 -07:00
bbc_i2c.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
bbc_i2c.h
bpp.c Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
cpwatchdog.c cpwatchdog build fix 2007-07-16 09:05:53 -07:00
display7seg.c [SPARC] SBUS: display7seg.c needs asm/io.h 2007-05-13 22:22:47 -07:00
envctrl.c Add common orderly_poweroff() 2007-07-18 08:47:40 -07:00
flash.c [SPARC]: Missing #include <linux/mm.h> in drivers/sbus/char/flash.c 2007-05-31 01:52:53 -07:00
jsflash.c unregister_blkdev() delete redundant messages in callers 2007-07-17 10:23:03 -07:00
Kconfig [SPARC]: Remove the broken SUN_AURORA driver. 2007-02-26 11:35:45 -08:00
Makefile [SPARC]: Remove the broken SUN_AURORA driver. 2007-02-26 11:35:45 -08:00
max1617.h
openprom.c [OPENPROM]: Use pci_device_to_OF_node(). 2007-04-26 01:54:59 -07:00
riowatchdog.c
rtc.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
uctrl.c [SPARC] uctrl: Check request_irq() return value. 2007-02-26 11:35:51 -08:00
vfc.h
vfc_dev.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
vfc_i2c.c Various typo fixes. 2007-02-17 19:07:33 +01:00
vfc_i2c.h