linux/drivers/staging/rtl8192su
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
Kconfig staging: rtl8192su: move to EEPROM_93CX 2010-05-11 11:35:32 -07:00
Makefile Staging: rtl819su: added r8192SU_led.c/.h 2010-05-14 13:54:55 -07:00
r819xU_cmdpkt.c Staging: rtl8192su: check for skb == NULL 2010-05-11 11:36:04 -07:00
r819xU_cmdpkt.h staging: rtl8192su: cleanup of r819xU_cmdpkt.c, r819xU_cmdpkt.c 2010-05-11 11:35:33 -07:00
r819xU_HTGen.h
r819xU_HTType.h
r8192S_Efuse.c
r8192S_Efuse.h
r8192S_firmware.c Staging: rtl8192su: refactored FirmwareCheckReady 2010-05-11 11:36:04 -07:00
r8192S_firmware.h
r8192S_hw.h
r8192S_phy.c staging: trivial: fix typo "seperate" 2010-05-14 13:16:10 -07:00
r8192S_phy.h
r8192S_phyreg.h
r8192S_rtl6052.c
r8192S_rtl6052.h
r8192S_rtl8225.c
r8192S_rtl8225.h
r8192SU_HWImg.c
r8192SU_HWImg.h
r8192SU_led.c Staging: rtl819su: added r8192SU_led.c/.h 2010-05-14 13:54:55 -07:00
r8192SU_led.h Staging: rtl819su: added r8192SU_led.c/.h 2010-05-14 13:54:55 -07:00
r8192U_core.c Staging: rtl8192su: led update 2010-05-14 13:55:59 -07:00
r8192U_dm.c
r8192U_dm.h
r8192U_pm.c
r8192U_pm.h
r8192U_wx.c
r8192U_wx.h
r8192U.h Staging: rtl819su: added r8192SU_led.c/.h 2010-05-14 13:54:55 -07:00
TODO