android_kernel_xiaomi_sm8350/drivers/net/wan
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
..
lmc PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
.gitignore
c101.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
cosa.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
cosa.h
cycx_drv.c
cycx_main.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
cycx_x25.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
dlci.c
dscc4.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
farsync.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
farsync.h
hd6457x.c
hd64570.h
hd64572.h
hdlc_cisco.c Generic HDLC sparse annotations 2007-04-28 11:01:07 -04:00
hdlc_fr.c Generic HDLC sparse annotations 2007-04-28 11:01:07 -04:00
hdlc_ppp.c
hdlc_raw_eth.c
hdlc_raw.c
hdlc_x25.c
hdlc.c
hostess_sv11.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
Kconfig Introduce CONFIG_VIRT_TO_BUS 2007-07-16 09:05:42 -07:00
lapbether.c
Makefile
n2.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
pc300_drv.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
pc300_tty.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
pc300-falc-lh.h
pc300.h
pc300too.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
pci200syn.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
sbni.c drivers/net/wan/sbni: kill uninit'd var warning 2007-07-17 16:18:00 -04:00
sbni.h
sdla.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
sealevel.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
syncppp.c [SK_BUFF]: Introduce skb_mac_header() 2007-04-25 22:24:41 -07:00
wanxl.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
x25_asy.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
x25_asy.h
z85230.c [SK_BUFF]: Introduce skb_copy_to_linear_data{_offset} 2007-04-25 22:28:29 -07:00
z85230.h