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
..
Kconfig [IrDA]: KingSun/DonShine USB IrDA dongle support. 2007-05-10 23:46:13 -07:00
Makefile [IrDA]: KingSun/DonShine USB IrDA dongle support. 2007-05-10 23:46:13 -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 [IRDA]: sti/cli removal from EP7211 IrDA driver 2006-03-20 19:00:04 -08:00
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 [IrDA]: irda-usb TX path optimization (was Re: IrDA spams logfiles - since 2.6.19) 2007-01-23 20:25:49 -08:00
irport.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
irport.h drivers/net: eliminate irq handler impossible checks, needless casts 2006-10-06 14:56:04 -04:00
irtty-sir.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
irtty-sir.h
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 [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ma600.c
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 IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
nsc-ircc.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
nsc-ircc.h [IRDA]: nsc-ircc: PM update 2006-03-20 18:59:05 -08:00
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.h WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00: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
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 [PATCH] smsc-ircc2: whitespace fixes 2005-09-07 16:57:57 -07:00
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 [IRDA]: remove MODULE_PARM() 2006-03-20 22:33:41 -08:00
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.h
w83977af_ir.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
w83977af_ir.h