1
linux/drivers/net/irda
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
..
act200l-sir.c
act200l.c
actisys-sir.c
actisys.c
ali-ircc.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
ali-ircc.h
au1k_ir.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
au1000_ircc.h
donauboe.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
donauboe.h Fix misspellings collected by members of KJ list. 2007-05-09 07:14:03 +02:00
ep7211_ir.c
esi-sir.c
esi.c
girbil-sir.c
girbil.c
irda-usb.c [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
irda-usb.h
irport.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
irport.h
irtty-sir.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
irtty-sir.h
Kconfig [IrDA]: KingSun/DonShine USB IrDA dongle support. 2007-05-10 23:46:13 -07:00
kingsun-sir.c [IrDA]: kingsun-sir.c charset fix. 2007-07-10 22:16:45 -07:00
litelink-sir.c
litelink.c
ma600-sir.c
ma600.c
Makefile [IrDA]: KingSun/DonShine USB IrDA dongle support. 2007-05-10 23:46:13 -07:00
mcp2120-sir.c
mcp2120.c
mcs7780.c [IrDA]: Adding carriage returns to mcs7780 debug statements 2007-04-25 22:29:31 -07:00
mcs7780.h
nsc-ircc.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
nsc-ircc.h
old_belkin-sir.c
old_belkin.c
pxaficp_ir.c Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2007-05-06 13:20:10 -07:00
sa1100_ir.c [SK_BUFF]: Introduce skb_reset_mac_header(skb) 2007-04-25 22:24:32 -07:00
sir_dev.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sir_dongle.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sir-dev.h
smsc-ircc2.c smsc-ircc2: bypass PNP detection until we get the quirks worked out 2007-07-01 12:29:44 -07:00
smsc-ircc2.h
smsc-sio.h
stir4200.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
tekram-sir.c
tekram.c
toim3232-sir.c
via-ircc.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
via-ircc.h
vlsi_ir.c [IRDA]: use mutex instead of semaphore in VLSI 82C147 IrDA controller driver 2007-07-10 22:18:51 -07:00
vlsi_ir.h [IRDA]: use mutex instead of semaphore in VLSI 82C147 IrDA controller driver 2007-07-10 22:18:51 -07:00
w83977af_ir.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
w83977af_ir.h
w83977af.h