OpenCloudOS-Kernel/drivers/staging/wilc1000
Fengguang Wu 291b93ca2c staging: wilc1000: fix memdup.cocci warnings
drivers/staging/wilc1000/host_interface.c:946:32-39: WARNING opportunity for kmemdup
drivers/staging/wilc1000/host_interface.c:970:30-37: WARNING opportunity for kmemdup

 Use kmemdup rather than duplicating its implementation

Generated by: scripts/coccinelle/api/memdup.cocci

Fixes: aaea2164bd ("staging: wilc1000: check for kmalloc allocation failures")
CC: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-28 13:39:21 +02:00
..
Kconfig staging: wilc1000: removes WIRELESS_EXT 2016-03-28 07:30:36 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
TODO drivers: wilc1000: remove references to semaphores 2016-08-21 17:27:16 +02:00
coreconfigurator.c staging: wilc1000: rename variables prefix using datatype 'u8' 2018-03-14 12:59:51 +01:00
coreconfigurator.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
host_interface.c staging: wilc1000: fix memdup.cocci warnings 2018-03-28 13:39:21 +02:00
host_interface.h staging: wilc1000: rename wilc_remove_key() parameters to avoid camelCase 2018-02-19 18:12:53 +01:00
linux_mon.c staging: wilc1000: remove unused return variable 2018-03-28 13:39:21 +02:00
linux_wlan.c staging: wilc1000: Destroy mutex object in deinitialization 2018-03-19 19:45:31 +01:00
wilc_debugfs.c staging: wilc1000: add SPDX identifiers to all wilc100 files 2017-11-28 13:20:46 +01:00
wilc_sdio.c staging: wilc1000: fix line over 80 characters in sdio_clear_int_ext() 2018-02-16 17:31:22 +01:00
wilc_spi.c staging: wilc1000: fix line over 80 chars in wilc_spi_clear_int_ext() 2018-02-16 15:31:30 +01:00
wilc_wfi_cfgoperations.c staging: wilc1000: replace switch statement by simple if condition 2018-03-22 18:23:10 +01:00
wilc_wfi_cfgoperations.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wilc_wfi_netdevice.h staging: wilc1000: rename WILC_WFI_mgmt_rx() to avoid camelCase 2018-03-01 17:22:28 +01:00
wilc_wlan.c staging: wilc1000: fix line over 80 char in wilc_wlan_handle_rxq() 2018-03-06 04:10:46 -08:00
wilc_wlan.h staging: wilc1000: move multiple definition of same macro to common header 2018-03-01 17:22:28 +01:00
wilc_wlan_cfg.c staging: wilc1000: fix line over 80 chars in wilc_wlan_cfg_get_wid_value() 2018-02-16 17:31:22 +01:00
wilc_wlan_cfg.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wilc_wlan_if.h staging: wilc1000: removed unnecessary defined enums typedef 2018-01-23 11:47:29 +01:00