linux/drivers/media/dvb
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
..
b2c2 V4L/DVB (5780): Dvb: Remove static dependencies on dvb-pll 2007-07-18 14:24:16 -03:00
bt8xx V4L/DVB (5840): fix dst and cx24123: tune() callback changed signess for delay 2007-07-18 14:24:46 -03:00
cinergyT2 some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
dvb-core V4L/DVB (5838): dvb-core: Fix signedness warnings (gcc 4.1.1, kernel 2.6.22) 2007-07-18 14:24:46 -03:00
dvb-usb V4L/DVB (5829): Firmware extract and loading for opera dvb-usb update 2007-07-18 14:24:41 -03:00
frontends V4L/DVB (5840): fix dst and cx24123: tune() callback changed signess for delay 2007-07-18 14:24:46 -03:00
pluto2 V4L/DVB (5745): Dvb: use '+=' instead of '=' for EXTRA_CFLAGS 2007-07-18 14:23:56 -03:00
ttpci V4L/DVB (5836): dvb-ttpci: re-initialize aspect ratio and pan scan after arm crash 2007-07-18 14:24:45 -03:00
ttusb-budget V4L/DVB (5745): Dvb: use '+=' instead of '=' for EXTRA_CFLAGS 2007-07-18 14:23:56 -03:00
ttusb-dec V4L/DVB (5745): Dvb: use '+=' instead of '=' for EXTRA_CFLAGS 2007-07-18 14:23:56 -03:00
Kconfig Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
Makefile [PATCH] dvb: add Pluto2 driver 2005-07-07 18:23:55 -07:00