staging: wilc1000: remove unused preprocessor definition
authorTony Cho <tony.cho@atmel.com>
Mon, 7 Sep 2015 10:09:30 +0000 (19:09 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:44 +0000 (18:24 -0700)
This patch removes a preprocessor definition, SWITCH_LOG_TERMINAL,
which is not used. Enabling this definition affects the performance.

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_wlan_cfg.c

index 4187c7c8c6d0b6931f077519c87c8447862ddb10..59c9b441abf38cf6e65ca5cd34938e3d547c3711 100644 (file)
@@ -926,12 +926,6 @@ static int linux_wlan_init_test_config(struct net_device *dev, linux_wlan_t *p_n
        if (!g_linux_wlan->oup.wlan_cfg_set(0, WID_11N_PROT_MECH, c_val, 1, 0, 0))
                goto _fail_;
 
-#ifdef SWITCH_LOG_TERMINAL
-       c_val[0] = AUTO_PROT;
-       if (!g_linux_wlan->oup.wlan_cfg_set(0, WID_LOGTerminal_Switch, c_val, 1, 0, 0))
-               goto _fail_;
-#endif
-
        c_val[0] = ACTIVE_SCAN;
        if (!g_linux_wlan->oup.wlan_cfg_set(0, WID_SCAN_TYPE, c_val, 1, 0, 0))
                goto _fail_;
index d5037992deb002342a69f28ef8fc314ea05811c9..21ed14d8bfe04db1fd89465e34ea393d388498af 100644 (file)
@@ -534,14 +534,6 @@ static int wilc_wlan_cfg_indicate_rx(uint8_t *frame, int size, wilc_cfg_rsp_t *r
                GnrlAsyncInfoReceived(frame - 4, size + 4);
                break;
 
-       case 'L':
-#ifndef SWITCH_LOG_TERMINAL
-               PRINT_ER("Unexpected firmware log message received\n");
-#else
-               PRINT_D(FIRM_DBG, "\nFIRMWARE LOGS :\n<<\n%s\n>>\n", frame);
-               break;
-
-#endif
 #if 1
        case 'N':
                NetworkInfoReceived(frame - 4, size + 4);