2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/staging/vt6655
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
..
80211hdr.h Staging: vt6655: 80211hdr.h: Checkpatch cleanup 2010-05-11 11:35:29 -07:00
80211mgr.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
80211mgr.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
aes_ccmp.c Staging: vt665x: Remove umem.h Part 1 2009-09-15 12:02:08 -07:00
aes_ccmp.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
baseband.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
baseband.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
bssdb.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
bssdb.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
card.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
card.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
country.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
datarate.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
datarate.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
desc.h Staging: vt6655: Hoist assign from if 2010-05-11 11:35:44 -07:00
device_cfg.h Staging: vt665x: Typedef and macro cleanup Part 2 2009-09-15 12:02:07 -07:00
device_main.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
device.h Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
dpc.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
dpc.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
hostap.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
hostap.h Staging: vt6655: Rename hostap_set_hostapd, hostap_iotctl. 2010-05-11 11:35:56 -07:00
IEEE11h.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
IEEE11h.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
iocmd.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
ioctl.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
ioctl.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
iowpa.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
iwctl.c Staging: vt6655: remove HANDLE definition and use 2010-05-14 13:20:35 -07:00
iwctl.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
Kconfig Staging/vt66*: kconfig, depends on WLAN 2009-12-23 11:27:50 -08:00
key.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
key.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
mac.c Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
mac.h Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
Makefile Staging: vt665x: fix built-in compiling 2009-09-15 12:02:34 -07:00
mib.c Staging: vt665x: remove tbit.h part 2 2009-09-15 12:02:08 -07:00
mib.h Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
michael.c Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
michael.h Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
power.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
power.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
rc4.c Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
rc4.h Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
rf.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
rf.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
rxtx.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
rxtx.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
srom.c Staging: vt6655: Convert C99 style comments, remove spaces between function definitions and parenthesis 2010-05-11 11:35:43 -07:00
srom.h Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
tcrc.c Staging: vt665x: remove tbit.h part 2 2009-09-15 12:02:08 -07:00
tcrc.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
test
tether.c Staging: vt665x: remove tbit.h part 2 2009-09-15 12:02:08 -07:00
tether.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
tkip.c Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
tkip.h Staging: vt6655: remove VOID definition and use 2010-05-11 14:56:28 -07:00
tmacro.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
TODO Staging: update TODO files 2009-11-30 16:39:42 -08:00
ttype.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
upc.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
vntconfiguration.dat
vntwifi.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
vntwifi.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
wcmd.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
wcmd.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
wctl.c Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
wctl.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
wmgr.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
wmgr.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
wpa2.c Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
wpa2.h Staging: vt6655: remove OUT definition 2010-05-14 13:24:41 -07:00
wpa.c Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
wpa.h Staging: vt6655: remove IN definition 2010-05-14 13:24:03 -07:00
wpactl.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
wpactl.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00
wroute.c Staging: vt6655: Correct unsigned bound issue 2009-12-11 12:23:16 -08:00
wroute.h Staging: vt665x: Clean up include files, Part 2 2009-09-15 12:02:08 -07:00