linux/drivers/staging/rtl8192e
Thomas Meyer 929fa2a42e staging: rtl8192e: Use kzalloc rather than kmalloc v2
Use kzalloc rather than kmalloc followed by memset with 0

This considers some simple cases that are common and easy to validate
Note in particular that there are no ...s in the rule, so all of the
matched code has to be contiguous

The semantic patch that makes this change is available
in scripts/coccinelle/api/alloc/kzalloc-simple.cocci.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-26 17:21:16 -08:00
..
dot11d.c From: wlanfae <wlanfae@realtek.com> 2011-08-23 19:00:42 -05:00
dot11d.h From: wlanfae <wlanfae@realtek.com> 2011-08-23 19:00:42 -05:00
Kconfig staging/rtl81*: build as loadable modules only 2011-04-04 22:46:15 -07:00
license From: wlanfae <wlanfae@realtek.com> 2011-08-23 19:00:42 -05:00
Makefile rtl8192e: drop alternate code paths for CONFIG_PM_RTL 2011-11-26 17:19:24 -08:00
r819xE_phyreg.h Staging: rtl8192e: Code style fix for r819xE_phyreg.h 2010-03-03 16:42:30 -08:00
r8190P_def.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part I 2011-08-25 10:05:08 -07:00
r8190P_rtl8256.c staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part I 2011-08-25 10:05:08 -07:00
r8190P_rtl8256.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part I 2011-08-25 10:05:08 -07:00
r8192E_cmdpkt.c staging: rtl8192e: Silence smatch info in r8192E_cmdpkt.c 2011-09-06 16:35:57 -07:00
r8192E_cmdpkt.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part I 2011-08-25 10:05:08 -07:00
r8192E_dev.c staging: rtl8192e: Fix smatch info output for r8192E_dev.c 2011-09-06 16:35:57 -07:00
r8192E_dev.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part III 2011-08-25 10:05:10 -07:00
r8192E_firmware.c staging: rtl8192e: Fix sparse (non-endian) warnings - Part II 2011-08-25 15:36:35 -07:00
r8192E_firmware.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part III 2011-08-25 10:05:10 -07:00
r8192E_hw.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part III 2011-08-25 10:05:10 -07:00
r8192E_hwimg.c staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part III 2011-08-25 10:05:10 -07:00
r8192E_hwimg.h staging: rtl8192e: Fix compilation warnings 2011-08-23 21:50:58 -05:00
r8192E_phy.c staging: rtl8192e: Fix smatch warnings regarding large arrays on stack 2011-09-06 16:35:59 -07:00
r8192E_phy.h staging: rtl8192e: Fix smatch warnings regarding large arrays on stack 2011-09-06 16:35:59 -07:00
r8192E_phyreg.h From: wlanfae <wlanfae@realtek.com> 2011-08-23 19:00:42 -05:00
rtl819x_BA.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part V 2011-08-25 10:05:10 -07:00
rtl819x_BAProc.c staging: rtl8192e: Fix format warning 2011-09-06 16:53:38 -07:00
rtl819x_HT.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part V 2011-08-25 10:05:10 -07:00
rtl819x_HTProc.c staging: rtl8192e: Fix sparse (non-endian) messages - Part I 2011-08-25 15:36:34 -07:00
rtl819x_Qos.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VI 2011-08-25 10:05:11 -07:00
rtl819x_TS.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VI 2011-08-25 10:05:11 -07:00
rtl819x_TSProc.c staging: rtl8192e: Fix various problems noted by smatch 2011-09-06 16:36:00 -07:00
rtl_cam.c staging: rtl8192e: Remove MAC_FMT and MAC_ARG for %pM 2011-08-25 15:36:34 -07:00
rtl_cam.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VII 2011-08-25 10:05:11 -07:00
rtl_core.c rtl8192e: drop alternate code paths for CONFIG_PM_RTL 2011-11-26 17:19:24 -08:00
rtl_core.h staging: rtl8192e: Fix array overrun 2011-08-29 10:58:00 -07:00
rtl_crypto.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part IX 2011-08-25 10:05:12 -07:00
rtl_debug.c staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part IX 2011-08-25 10:05:12 -07:00
rtl_debug.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part IX 2011-08-25 10:05:12 -07:00
rtl_dm.c staging: rtl8192e: Fix sparse (non-endian) warnings - Part II 2011-08-25 15:36:35 -07:00
rtl_dm.h staging: rtl8192e: Cleanup checkpatch -f errors - Part X 2011-08-25 10:05:12 -07:00
rtl_eeprom.c staging: rtl8192e: Fix sparse (non-endian) warnings - Part II 2011-08-25 15:36:35 -07:00
rtl_eeprom.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XI 2011-08-25 10:05:13 -07:00
rtl_ethtool.c rtl8192e: Remove extra ifdefs 2011-08-23 20:02:27 -05:00
rtl_pci.c staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XVII 2011-08-25 10:05:15 -07:00
rtl_pci.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XVII 2011-08-25 10:05:15 -07:00
rtl_pm.c rtl8192e: drop alternate code paths for CONFIG_PM_RTL 2011-11-26 17:19:24 -08:00
rtl_pm.h rtl8192e: drop alternate code paths for CONFIG_PM_RTL 2011-11-26 17:19:24 -08:00
rtl_ps.c staging: rtl8192e: Fix sparse (non-endian) warnings - Part II 2011-08-25 15:36:35 -07:00
rtl_ps.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XVIII 2011-08-25 10:05:16 -07:00
rtl_wx.c staging: rtl8192e: Fix smatch warning in rtl_wx.c 2011-09-06 16:35:57 -07:00
rtl_wx.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XVIII 2011-08-25 10:05:16 -07:00
rtllib_crypt_ccmp.c staging: rtl8192e: Use kzalloc rather than kmalloc v2 2011-11-26 17:21:16 -08:00
rtllib_crypt_tkip.c staging: rtl8192e: Use kzalloc rather than kmalloc v2 2011-11-26 17:21:16 -08:00
rtllib_crypt_wep.c staging: rtl8192e: Use kzalloc rather than kmalloc v2 2011-11-26 17:21:16 -08:00
rtllib_crypt.c staging: rtl8192e: Use kzalloc rather than kmalloc v2 2011-11-26 17:21:16 -08:00
rtllib_crypt.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XI 2011-08-25 10:05:13 -07:00
rtllib_endianfree.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XI 2011-08-25 10:05:13 -07:00
rtllib_module.c staging: rtl8192e: Fix various problems noted by smatch 2011-09-06 16:36:00 -07:00
rtllib_rx.c staging: rtl8192e: Fix smatch warnings regarding large arrays on stack 2011-09-06 16:35:59 -07:00
rtllib_softmac_wx.c staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XV 2011-08-25 10:05:14 -07:00
rtllib_softmac.c staging: rtl8192e: Use kzalloc rather than kmalloc v2 2011-11-26 17:21:16 -08:00
rtllib_tx.c staging: rtl8192e: Fix sparse (non-endian) messages - Part I 2011-08-25 15:36:34 -07:00
rtllib_wx.c staging: rtl8192e: Use kzalloc rather than kmalloc v2 2011-11-26 17:21:16 -08:00
rtllib.h rtl8192e: Don't copy huge struct by value (and make it const). 2011-11-26 17:19:23 -08:00
TODO rtl8192e: Add a TODO 2011-08-23 20:04:16 -05:00