From: Chaehyun Lim Date: Fri, 2 Oct 2015 07:41:11 +0000 (+0900) Subject: staging: wilc1000: remove commented codes X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=331d80c53b2d2d11d526da5bed117119e7bd57bc;p=linux-beck.git staging: wilc1000: remove commented codes This patch removes commented codes that is not used in this driver. Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index c4915d3f3b8c..50631c500e2c 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1879,9 +1879,6 @@ static void __exit exit_wilc_driver(void) } } - /* WILC_WFI_deinit_mon_interface(); */ - - /* if(g_linux_wlan->open_ifcs==0) */ { #ifndef WILC_SDIO PRINT_D(INIT_DBG, "SPI unregsiter...\n"); diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index 81c1ad376600..f2943b2dc603 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -183,7 +183,6 @@ typedef struct { struct task_struct *txq_thread; unsigned char eth_src_address[NUM_CONCURRENT_IFC][6]; - /* unsigned char eth_dst_address[6]; */ const struct firmware *wilc_firmware; diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 4ca872129f8c..da529105f417 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -142,7 +142,6 @@ static void wilc_wlan_txq_remove(struct txq_entry_t *tqe) { wilc_wlan_dev_t *p = (wilc_wlan_dev_t *)&g_wlan; - /* unsigned long flags; */ if (tqe == p->txq_head) { p->txq_head = tqe->next; @@ -849,8 +848,6 @@ int wilc_wlan_handle_txq(u32 *pu32TxqCount) i = 0; sum = 0; do { - /* if ((tqe != NULL) && (i < (8)) && */ - /* if ((tqe != NULL) && (i < (WILC_VMM_TBL_SIZE-1)) && */ if ((tqe != NULL) && (i < (WILC_VMM_TBL_SIZE - 1)) /* reserve last entry to 0 */) { if (tqe->type == WILC_CFG_PKT) { @@ -973,7 +970,6 @@ int wilc_wlan_handle_txq(u32 *pu32TxqCount) * Get the entries **/ entries = ((reg >> 3) & 0x3f); - /* entries = ((reg>>3)&0x2f); */ break; } else { release_bus(RELEASE_ALLOW_SLEEP); diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h index 38d220620608..327ea039c946 100644 --- a/drivers/staging/wilc1000/wilc_wlan_if.h +++ b/drivers/staging/wilc1000/wilc_wlan_if.h @@ -10,9 +10,6 @@ #ifndef WILC_WLAN_IF_H #define WILC_WLAN_IF_H -/* #define MEMORY_STATIC */ -/* #define USE_OLD_SPI_SW */ - #include #include "linux_wlan_common.h"