linux-kernel-test/drivers/staging/rtl8192u
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
..
ieee80211 Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
authors
changes
copying
dot11d.h Staging: rtl8192u: fix comments and space coding style issue in dot11d.h 2010-05-11 11:35:55 -07:00
ieee80211_crypt.h Staging: rtl8192u: fix space coding style issue in ieee80211_crypt.h 2010-05-11 11:35:55 -07:00
ieee80211.h staging: trivial: fix typo "seperate" 2010-05-14 13:16:10 -07:00
Kconfig Staging: rtl8192u: Add select WEXT_PRIV to Kconfig to prevent build failure 2010-03-03 16:42:41 -08:00
Makefile Staging: rtl8192u: dont use -mhard-float 2010-03-03 16:42:43 -08:00
r819xU_cmdpkt.c Staging: drop redundant memset 2010-05-11 11:35:34 -07:00
r819xU_cmdpkt.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r819xU_firmware.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r819xU_HTGen.h
r819xU_HTType.h
r819xU_phy.c Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r819xU_phy.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r819xU_phyreg.h Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
r8180_93cx6.c
r8180_93cx6.h
r8180_pm.c Staging: rtl8192u: remove bad whitespaces 2009-12-11 12:23:22 -08:00
r8180_pm.h
r8190_rtl8256.c
r8190_rtl8256.h
r8192U_core.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
r8192U_dm.c Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r8192U_dm.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r8192U_hw.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r8192U_wx.c Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00
r8192U_wx.h
r8192U.h Staging: rtl8192u: remove dead code 2009-12-11 12:23:22 -08:00