android_kernel_xiaomi_sm8350/drivers/usb/gadget
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
..
at91_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
at91_udc.h USB: at91_udc wakeup event updates 2007-02-07 15:44:37 -08:00
config.c USB: <linux/usb_ch9.h> becomes <linux/usb/ch9.h> 2007-02-07 15:44:32 -08:00
dummy_hcd.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
epautoconf.c USB: usb gadgets avoid le{16,32}_to_cpup() 2007-06-08 16:24:30 -07:00
ether.c usb gadget: Rename husb2dev -> usba 2007-07-12 16:34:38 -07:00
file_storage.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
fsl_usb2_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
fsl_usb2_udc.h USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register 2007-07-12 16:34:30 -07:00
gadget_chips.h usb gadget: Rename husb2dev -> usba 2007-07-12 16:34:38 -07:00
gmidi.c usb gadget stack: remove usb_ep_*_buffer(), part 1 2007-07-12 16:34:42 -07:00
goku_udc.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
goku_udc.h USB: goku_udc trivial cleanups 2007-07-12 16:34:43 -07:00
inode.c usb gadget stack: remove usb_ep_*_buffer(), part 1 2007-07-12 16:34:42 -07:00
Kconfig USB: usb gadget stack can now -DDEBUG with Kconfig 2007-07-12 16:34:42 -07:00
lh7a40x_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
lh7a40x_udc.h USB: <linux/usb_ch9.h> becomes <linux/usb/ch9.h> 2007-02-07 15:44:32 -08:00
m66592-udc.c minimal fixes for drivers/usb/gadget/m66592-udc.c 2007-07-15 16:40:51 -07:00
m66592-udc.h USB: m66592-udc: peripheral controller driver for M66592 2007-07-12 16:29:45 -07:00
Makefile USB: usb gadget stack can now -DDEBUG with Kconfig 2007-07-12 16:34:42 -07:00
ndis.h
net2280.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
net2280.h
omap_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
omap_udc.h USB: omap_udc build fixes (sync with linux-omap) 2007-01-05 12:19:09 -08:00
pxa2xx_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
pxa2xx_udc.h USB: pxa2xx_udc -- cleanups, mostly removing dma hooks 2007-07-12 16:34:42 -07:00
rndis.c USB: usb gadget stack can now -DDEBUG with Kconfig 2007-07-12 16:34:42 -07:00
rndis.h USB gadget rndis: fix struct rndis_packet_msg_type unaligned bug 2007-04-27 13:28:40 -07:00
s3c2410_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
s3c2410_udc.h USB Gadget driver for Samsung s3c2410 ARM SoC 2007-07-12 16:34:30 -07:00
serial.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
usbstring.c USB: <linux/usb_ch9.h> becomes <linux/usb/ch9.h> 2007-02-07 15:44:32 -08:00
zero.c usb gadget stack: remove usb_ep_*_buffer(), part 1 2007-07-12 16:34:42 -07:00