linux/drivers/staging/csr
Devendra Naga 7cd4e8c577 staging: csr: replace calls to kmalloc and memset with kzalloc
the kzalloc does allocates memory and sets the data at the memory
which is allocated to 0,

The driver does uses the kmalloc and memset at some points in the code
replace them with a single call to kzalloc

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Acked-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-04 14:35:05 -07:00
..
bh.c staging/csr: fix coding style problems in handle_bh_error 2012-08-13 18:57:44 -07:00
csr_framework_ext_types.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_framework_ext.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
csr_framework_ext.h staging: csr: remove CsrMemAllocDma() 2012-07-20 15:47:35 -07:00
csr_lib.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_log_configure.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_log_text.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_log.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_macro.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_msg_transport.h
csr_msgconv.c staging: csr: delete a bunch of unused library functions 2012-07-20 17:25:09 -07:00
csr_msgconv.h staging: csr: delete a bunch of unused library functions 2012-07-20 17:25:09 -07:00
csr_panic.c staging: csr: Fix up version.h includes 2012-08-13 18:57:44 -07:00
csr_panic.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_prim_defs.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_result.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_sched.h staging: csr: remove CsrPmemAlloc 2012-07-20 16:41:09 -07:00
csr_sdio.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_serialize_primitive_types.c staging: csr: delete a bunch of unused library functions 2012-07-20 17:25:09 -07:00
csr_time.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
csr_time.h staging: csr: delete a bunch of unused library functions 2012-07-20 17:25:09 -07:00
csr_util.c stating: csr: remove unneeded #includes in csr_util.c 2012-07-20 15:06:15 -07:00
csr_wifi_common.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_fsm_event.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_fsm_types.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_fsm.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_hip_card_sdio_intr.c staging: csr: remove CsrMemAllocDma() 2012-07-20 15:47:35 -07:00
csr_wifi_hip_card_sdio_mem.c staging: csr: remove CsrInt32 typedef 2012-07-20 12:07:25 -07:00
csr_wifi_hip_card_sdio.c staging:csr: remove usage of CsrSnprintf and use scnprintf 2012-08-16 11:39:00 -07:00
csr_wifi_hip_card_sdio.h staging: csr: remove CsrBool typedef 2012-07-20 12:25:15 -07:00
csr_wifi_hip_card.h staging: csr: remove CsrBool typedef 2012-07-20 12:25:15 -07:00
csr_wifi_hip_chiphelper_private.h staging: csr: remove CsrCharString typedef 2012-07-20 12:22:32 -07:00
csr_wifi_hip_chiphelper.c staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_hip_chiphelper.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_hip_conversions.h staging: csr: remove CsrInt32 typedef 2012-07-20 12:07:25 -07:00
csr_wifi_hip_download.c staging: csr: fix possible memory leak in do_patch_convert_download() 2012-09-04 14:14:07 -07:00
csr_wifi_hip_dump.c staging: csr: remove CsrMemAlloc() 2012-07-20 15:37:12 -07:00
csr_wifi_hip_packing.c staging: csr: remove CsrMemCpy() 2012-07-20 15:01:05 -07:00
csr_wifi_hip_send.c staging: csr: use %*ph[C] to hexdump small buffers 2012-08-13 18:56:35 -07:00
csr_wifi_hip_signals.c staging: csr: remove CsrOffSetOf() 2012-07-20 15:09:16 -07:00
csr_wifi_hip_signals.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_hip_sigs.h staging: csr: remove CsrUint24 typedef 2012-07-20 12:14:51 -07:00
csr_wifi_hip_ta_sampling.c staging: csr: remove CsrMemCmp 2012-07-20 14:18:02 -07:00
csr_wifi_hip_ta_sampling.h staging: csr: remove CsrUint32 typedef 2012-07-20 12:05:42 -07:00
csr_wifi_hip_udi.c staging:csr: remove usage of CsrSnprintf and use scnprintf 2012-08-16 11:39:00 -07:00
csr_wifi_hip_unifi_signal_names.c staging: csr: remove CsrCharString typedef 2012-07-20 12:22:32 -07:00
csr_wifi_hip_unifi_udi.h staging: csr: remove CsrCharString typedef 2012-07-20 12:22:32 -07:00
csr_wifi_hip_unifi.h staging:csr: remove usage of CsrSnprintf and use scnprintf 2012-08-16 11:39:00 -07:00
csr_wifi_hip_unifihw.h
csr_wifi_hip_unifiversion.h
csr_wifi_hip_xbv.c staging: csr: remove CsrMemAlloc() 2012-07-20 15:37:12 -07:00
csr_wifi_hip_xbv.h staging: csr: remove CsrInt32 typedef 2012-07-20 12:07:25 -07:00
csr_wifi_hostio_prim.h
csr_wifi_lib.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_msgconv.h staging: csr: remove csr_utf16.c 2012-07-20 17:04:08 -07:00
csr_wifi_nme_ap_converter_init.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_ap_converter_init.h
csr_wifi_nme_ap_free_downstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_ap_free_upstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_ap_lib.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_ap_prim.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_ap_sef.c
csr_wifi_nme_ap_sef.h
csr_wifi_nme_ap_serialize.c staging: csr: remove csr_utf16.c 2012-07-20 17:04:08 -07:00
csr_wifi_nme_ap_serialize.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_converter_init.h
csr_wifi_nme_lib.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_prim.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_nme_serialize.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_nme_task.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_private_common.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_result.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_router_converter_init.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_converter_init.h
csr_wifi_router_ctrl_converter_init.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_ctrl_converter_init.h
csr_wifi_router_ctrl_free_downstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_ctrl_free_upstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_ctrl_lib.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_ctrl_prim.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_router_ctrl_sef.c Staging: csr: update to version 5.1.0 of the driver 2012-06-19 17:34:58 -07:00
csr_wifi_router_ctrl_sef.h Staging: csr: update to version 5.1.0 of the driver 2012-06-19 17:34:58 -07:00
csr_wifi_router_ctrl_serialize.c staging: csr: remove csr_utf16.c 2012-07-20 17:04:08 -07:00
csr_wifi_router_ctrl_serialize.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_free_downstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_free_upstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_lib.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_prim.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_router_sef.c
csr_wifi_router_sef.h
csr_wifi_router_serialize.c staging: csr: remove csr_utf16.c 2012-07-20 17:04:08 -07:00
csr_wifi_router_serialize.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_router_task.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_router_transport.c staging: csr: delete a bunch of unused library functions 2012-07-20 17:25:09 -07:00
csr_wifi_serialize_primitive_types.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_sme_ap_lib.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_sme_ap_prim.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_sme_converter_init.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_sme_converter_init.h Staging: csr: update to version 5.1.0 of the driver 2012-06-19 17:34:58 -07:00
csr_wifi_sme_free_downstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_sme_free_upstream_contents.c staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_sme_lib.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_sme_prim.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_sme_sef.c
csr_wifi_sme_sef.h
csr_wifi_sme_serialize.c staging: csr: remove csr_utf16.c 2012-07-20 17:04:08 -07:00
csr_wifi_sme_serialize.h staging: csr: remove csr_pmem.h 2012-07-20 16:50:34 -07:00
csr_wifi_sme_task.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
csr_wifi_vif_utils.h staging: csr: remove CsrBool typedef 2012-07-20 12:25:15 -07:00
data_tx.c staging: csr: remove CsrUint16 typedef 2012-07-20 12:00:10 -07:00
drv.c staging: csr: drv.c: Remove KERNEL_VERSION checks and associated defines 2012-09-04 14:31:21 -07:00
firmware.c staging/csr: remove firmware pointer check before giving to release_firmware 2012-08-13 18:56:36 -07:00
inet.c
init_hw.c
io.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
Kconfig staging: csr: add INET dependancy 2012-08-14 16:53:21 -07:00
LICENSE.txt
Makefile staging:csr: remove usage of CsrSnprintf and use scnprintf 2012-08-16 11:39:00 -07:00
mlme.c staging: csr: Remove unused macros 2012-07-11 17:07:53 -07:00
monitor.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
netdev.c staging: csr: Remove unneeded UF_NETIF_TX_* macros 2012-09-04 14:31:21 -07:00
os.c staging: csr: remove CsrUint16 typedef 2012-07-20 12:00:10 -07:00
putest.c staging: csr: remove CsrPmemAlloc 2012-07-20 16:41:09 -07:00
sdio_events.c staging: csr: Remove unneeded UF_NETIF_TX_* macros 2012-09-04 14:31:21 -07:00
sdio_mmc.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
sdio_stubs.c staging: csr: remove CsrUint16 typedef 2012-07-20 12:00:10 -07:00
sme_blocking.c staging: csr: remove CsrPmemFree() 2012-07-20 15:59:12 -07:00
sme_mgt.c staging: csr: remove CsrPmemAlloc 2012-07-20 16:41:09 -07:00
sme_native.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
sme_sys.c staging: csr: replace calls to kmalloc and memset with kzalloc 2012-09-04 14:35:05 -07:00
sme_userspace.c staging: csr: remove CsrPmemFree() 2012-07-20 15:59:12 -07:00
sme_userspace.h staging: csr: remove CsrSize typedef 2012-07-20 12:27:19 -07:00
sme_wext.c staging: csr: use is_zero_ether_addr() instead of memcmp() 2012-09-04 14:14:08 -07:00
ul_int.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
unifi_clients.h staging: csr: remove CsrUint32 typedef 2012-07-20 12:05:42 -07:00
unifi_config.h
unifi_dbg.c
unifi_event.c staging: csr: remove CsrBool typedef 2012-07-20 12:25:15 -07:00
unifi_native.h staging: csr: Remove dead code 2012-07-11 17:07:52 -07:00
unifi_os.h staging: csr: remove CsrUint16 typedef 2012-07-20 12:00:10 -07:00
unifi_pdu_processing.c staging: csr: Remove all leftover kernel version checks \o/ 2012-09-04 14:33:52 -07:00
unifi_priv.h staging: csr: Remove unneeded UF_NETIF_TX_* macros 2012-09-04 14:31:21 -07:00
unifi_sme.c staging: csr: remove CsrPmemAlloc 2012-07-20 16:41:09 -07:00
unifi_sme.h staging: csr: remove CsrBool typedef 2012-07-20 12:25:15 -07:00
unifi_wext.h staging: csr: unifi_wext.h: Remove KERNEL_VERSION checks 2012-09-04 14:31:21 -07:00
unifiio.h staging: csr: remove csr_types.h 2012-07-20 13:07:13 -07:00
wext_events.c staging: csr: print mac address with %pM 2012-08-13 18:56:35 -07:00