staging: wilc1000: remove unnecessary global variable
authorTony Cho <tony.cho@atmel.com>
Mon, 21 Sep 2015 03:17:01 +0000 (12:17 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 06:02:06 +0000 (23:02 -0700)
The global variable msgQ_created is removed because it is not necessary.

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

index 7b9de4c833fb9adbd95e408ff61b0cfa17350670..b92c96bf8207b358e746e77efcee4f04a6d7745e 100644 (file)
@@ -6356,7 +6356,6 @@ void host_int_send_network_info_to_host
  *  @version           1.0
  */
 static u32 u32Intialized;
-static u32 msgQ_created;
 static u32 clients_count;
 
 s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
@@ -6429,7 +6428,6 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
                        PRINT_ER("Failed to creat MQ\n");
                        goto _fail_;
                }
-               msgQ_created = 1;
                HostIFthreadHandler = kthread_run(hostIFthread, NULL, "WILC_kthread");
                if (IS_ERR(HostIFthreadHandler)) {
                        PRINT_ER("Failed to creat Thread\n");
@@ -6596,7 +6594,6 @@ s32 host_int_deinit(tstrWILC_WFIDrv *hWFIDrv)
                down(&hSemHostIFthrdEnd);
 
                wilc_mq_destroy(&gMsgQHostIF);
-               msgQ_created = 0;
        }
 
        down(&(pstrWFIDrv->gtOsCfgValuesSem));