staging: wilc1000: remove commented codes
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 2 Oct 2015 07:41:11 +0000 (16:41 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 10:03:42 +0000 (12:03 +0200)
This patch removes commented codes that is not used in this driver.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan_if.h

index c4915d3f3b8c3731cdb9969962f9882b60dae41e..50631c500e2c8e523eeb1bf50c1655d53adac087 100644 (file)
@@ -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");
index 81c1ad376600737e9ebdeec1c680d98c587a0c79..f2943b2dc603b54cbf080e78572f8ebbf617b6a1 100644 (file)
@@ -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;
 
index 4ca872129f8c8ea9ef9d2794dbca48e209a6ab22..da529105f417bddfbcb6de1275b1d90c6825c26f 100644 (file)
@@ -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);
index 38d22062060887e8d19f6d5bc63d87c6a6dbb960..327ea039c946b4dc6cc57eb32427f1a7d228d441 100644 (file)
@@ -10,9 +10,6 @@
 #ifndef WILC_WLAN_IF_H
 #define WILC_WLAN_IF_H
 
-/* #define MEMORY_STATIC */
-/* #define USE_OLD_SPI_SW */
-
 #include <linux/semaphore.h>
 #include "linux_wlan_common.h"