staging: wilc1000: remove unused global variables
authorTony Cho <tony.cho@atmel.com>
Thu, 10 Sep 2015 09:26:28 +0000 (18:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:55 +0000 (18:24 -0700)
This patch removes the followings from the driver because they are in
debugging purpose but not used anymore.
- int_clrd
- int_rcvdU
- int_rcvdB
- android_wifi_priv_cmd structure

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_sdio.c
drivers/staging/wilc1000/wilc_spi.c

index 8e19095babd9cd9ef4ed0059ecc10d7adbd6aaab..63f44f81d9ed56569a919f78fe5d0ee717911a26 100644 (file)
@@ -101,12 +101,6 @@ static struct notifier_block g_dev_notifier = {
                if (g_linux_wlan->oup.wlan_cleanup != NULL) \
                        g_linux_wlan->oup.wlan_cleanup(); }
 
-typedef struct android_wifi_priv_cmd {
-       char *buf;
-       int used_len;
-       int total_len;
-} android_wifi_priv_cmd;
-
 #define IRQ_WAIT       1
 #define IRQ_NO_WAIT    0
 /*
@@ -116,9 +110,6 @@ typedef struct android_wifi_priv_cmd {
  *      deinitialized from mdoule_exit
  */
 static struct semaphore close_exit_sync;
-unsigned int int_rcvdU;
-unsigned int int_rcvdB;
-unsigned int int_clrd;
 
 static int wlan_deinit_locks(linux_wlan_t *nic);
 static void wlan_deinitialize_threads(linux_wlan_t *nic);
@@ -340,7 +331,6 @@ void linux_wlan_disable_irq(int wait)
 #if (defined WILC_SPI) || (defined WILC_SDIO_IRQ_GPIO)
 static irqreturn_t isr_uh_routine(int irq, void *user_data)
 {
-       int_rcvdU++;
 #if (RX_BH_TYPE != RX_BH_THREADED_IRQ)
        linux_wlan_disable_irq(IRQ_NO_WAIT);
 #endif
@@ -395,7 +385,6 @@ static void isr_bh_routine(struct work_struct *work)
        #endif
        }
 
-       int_rcvdB++;
        PRINT_D(INT_DBG, "Interrupt received BH\n");
        if (g_linux_wlan->oup.wlan_handle_rx_isr != 0)
                g_linux_wlan->oup.wlan_handle_rx_isr();
@@ -422,7 +411,6 @@ static int isr_bh_routine(void *vp)
 
                        break;
                }
-               int_rcvdB++;
                PRINT_D(INT_DBG, "Interrupt received BH\n");
                if (g_linux_wlan->oup.wlan_handle_rx_isr != 0)
                        g_linux_wlan->oup.wlan_handle_rx_isr();
@@ -1792,7 +1780,6 @@ int mac_xmit(struct sk_buff *skb, struct net_device *ndev)
 
        nic = netdev_priv(ndev);
 
-       PRINT_D(INT_DBG, "\n========\n IntUH: %d - IntBH: %d - IntCld: %d\n========\n", int_rcvdU, int_rcvdB, int_clrd);
        PRINT_D(TX_DBG, "Sending packet just received from TCP/IP\n");
 
        /* Stop the network interface queue */
@@ -2096,10 +2083,6 @@ int wilc_netdev_init(void)
        if (!g_linux_wlan)
                return -ENOMEM;
 
-       /*Reset interrupt count debug*/
-       int_rcvdU = 0;
-       int_rcvdB = 0;
-       int_clrd = 0;
        #ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
        register_inetaddr_notifier(&g_dev_notifier);
        #endif
index 5a18148a593e3f2b6416138b6fee4a95bc6b78cc..79aa4a1b8f9fa14cd91f1937c4db151f3fbb4cad 100644 (file)
@@ -32,7 +32,6 @@ static wilc_sdio_t g_sdio;
 static int sdio_write_reg(uint32_t addr, uint32_t data);
 static int sdio_read_reg(uint32_t addr, uint32_t *data);
 #endif
-extern unsigned int int_clrd;
 
 /********************************************
  *
@@ -167,7 +166,6 @@ static int sdio_clear_int(void)
        cmd.address = 0x4;
        cmd.data = 0;
        g_sdio.sdio_cmd52(&cmd);
-       int_clrd++;
 
        return cmd.data;
 #else
@@ -179,7 +177,6 @@ static int sdio_clear_int(void)
        }
        reg &= ~0x1;
        sdio_write_reg(WILC_HOST_RX_CTRL_0, reg);
-       int_clrd++;
        return 1;
 #endif
 
index d7bb204c3e99ad13ae1a59aaa48461ea8ab8f430..d9ccca91651798cfff7986248518dbcdf4d62c6f 100644 (file)
@@ -10,8 +10,6 @@
 #include "wilc_wlan_if.h"
 #include "wilc_wlan.h"
 
-extern unsigned int int_clrd;
-
 /*
  * #include <linux/kernel.h>
  * #include <linux/string.h>
@@ -1030,7 +1028,6 @@ static int spi_clear_int(void)
        }
        reg &= ~0x1;
        spi_write_reg(WILC_HOST_RX_CTRL_0, reg);
-       int_clrd++;
        return 1;
 }