mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
7a6cb0d549
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> |
||
---|---|---|
.. | ||
adis16255 | ||
asus_oled | ||
batman-adv | ||
comedi | ||
crystalhd | ||
cx25821 | ||
cxt1e1 | ||
dream | ||
dt3155 | ||
dt3155v4l | ||
echo | ||
et131x | ||
frontier | ||
go7007 | ||
hv | ||
iio | ||
line6 | ||
memrar | ||
octeon | ||
otus | ||
panel | ||
phison | ||
pohmelfs | ||
quatech_usb2 | ||
ramzswap | ||
rar_register | ||
rt2860 | ||
rt2870 | ||
rt3070 | ||
rtl8187se | ||
rtl8192e | ||
rtl8192su | ||
rtl8192u | ||
samsung-laptop | ||
sep | ||
serqt_usb2 | ||
slicoss | ||
sm7xx | ||
ti-st | ||
udlfb | ||
usbip | ||
vme | ||
vt6655 | ||
vt6656 | ||
winbond | ||
wlags49_h2 | ||
wlags49_h25 | ||
wlan-ng | ||
Kconfig | ||
Makefile | ||
staging.c |