linux/drivers/staging
Julia Lawall 7a6cb0d549 Staging: Use kcalloc or kzalloc
Use kcalloc or kzalloc rather than the combination of kmalloc and memset.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,y,flags;
statement S;
type T;
@@

x =
-   kmalloc
+   kcalloc
           (
-           y * sizeof(T),
+           y, sizeof(T),
                flags);
 if (x == NULL) S
-memset(x, 0, y * sizeof(T));

@@
expression x,size,flags;
statement S;
@@

-x = kmalloc(size,flags);
+x = kzalloc(size,flags);
 if (x == NULL) S
-memset(x, 0, size);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
2010-05-14 14:02:56 -07:00
..
adis16255
asus_oled
batman-adv
comedi Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
crystalhd
cx25821
cxt1e1
dream Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
dt3155
dt3155v4l Staging: dt3155v4l: introduce state machine 2010-05-14 14:00:55 -07:00
echo
et131x
frontier
go7007 Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
hv staging: hv: Fix error checking in channel.c 2010-05-14 13:57:56 -07:00
iio
line6
memrar
octeon
otus Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
panel Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
phison
pohmelfs Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
quatech_usb2
ramzswap Staging: ramzswap: Remove backing swap support 2010-05-14 13:25:28 -07:00
rar_register
rt2860
rt2870
rt3070
rtl8187se Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
rtl8192e Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
rtl8192su Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
rtl8192u Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
samsung-laptop
sep
serqt_usb2
slicoss
sm7xx Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
ti-st
udlfb Staging: udlfb: fix coding style issues 2010-05-14 14:02:04 -07:00
usbip
vme Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
vt6655 Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
vt6656 Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
winbond
wlags49_h2 Staging: wlags49_hs2: Fix wlags49_hs2 driver after build fixes broke it 2010-05-14 13:47:07 -07:00
wlags49_h25
wlan-ng Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
Kconfig
Makefile
staging.c