Commit 52f93a83 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: remove unused variable scan_while_connected

Cleanup patch to remove the unused variable.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eaa5f7be
...@@ -242,8 +242,6 @@ u8 wilc_multicast_mac_addr_list[WILC_MULTICAST_TABLE_SIZE][ETH_ALEN]; ...@@ -242,8 +242,6 @@ u8 wilc_multicast_mac_addr_list[WILC_MULTICAST_TABLE_SIZE][ETH_ALEN];
static u8 rcv_assoc_resp[MAX_ASSOC_RESP_FRAME_SIZE]; static u8 rcv_assoc_resp[MAX_ASSOC_RESP_FRAME_SIZE];
static bool scan_while_connected;
static s8 rssi; static s8 rssi;
static u8 set_ip[2][4]; static u8 set_ip[2][4];
static u8 get_ip[2][4]; static u8 get_ip[2][4];
...@@ -839,11 +837,6 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info) ...@@ -839,11 +837,6 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info)
wid_list[index].val = (s8 *)&scan_info->src; wid_list[index].val = (s8 *)&scan_info->src;
index++; index++;
if (hif_drv->hif_state == HOST_IF_CONNECTED)
scan_while_connected = true;
else if (hif_drv->hif_state == HOST_IF_IDLE)
scan_while_connected = false;
result = wilc_send_config_pkt(vif, SET_CFG, wid_list, result = wilc_send_config_pkt(vif, SET_CFG, wid_list,
index, index,
wilc_get_vif_idx(vif)); wilc_get_vif_idx(vif));
...@@ -1182,8 +1175,6 @@ static s32 handle_connect_timeout(struct wilc_vif *vif) ...@@ -1182,8 +1175,6 @@ static s32 handle_connect_timeout(struct wilc_vif *vif)
hif_drv->hif_state = HOST_IF_IDLE; hif_drv->hif_state = HOST_IF_IDLE;
scan_while_connected = false;
memset(&info, 0, sizeof(struct connect_info)); memset(&info, 0, sizeof(struct connect_info));
if (hif_drv->usr_conn_req.conn_result) { if (hif_drv->usr_conn_req.conn_result) {
...@@ -1410,7 +1401,6 @@ static inline void host_int_parse_assoc_resp_info(struct wilc_vif *vif, ...@@ -1410,7 +1401,6 @@ static inline void host_int_parse_assoc_resp_info(struct wilc_vif *vif,
jiffies + msecs_to_jiffies(10000)); jiffies + msecs_to_jiffies(10000));
} else { } else {
hif_drv->hif_state = HOST_IF_IDLE; hif_drv->hif_state = HOST_IF_IDLE;
scan_while_connected = false;
} }
kfree(conn_info.resp_ies); kfree(conn_info.resp_ies);
...@@ -1452,7 +1442,6 @@ static inline void host_int_handle_disconnect(struct wilc_vif *vif) ...@@ -1452,7 +1442,6 @@ static inline void host_int_handle_disconnect(struct wilc_vif *vif)
host_int_free_user_conn_req(hif_drv); host_int_free_user_conn_req(hif_drv);
hif_drv->hif_state = HOST_IF_IDLE; hif_drv->hif_state = HOST_IF_IDLE;
scan_while_connected = false;
} }
static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif,
...@@ -1830,8 +1819,6 @@ static void handle_disconnect(struct wilc_vif *vif) ...@@ -1830,8 +1819,6 @@ static void handle_disconnect(struct wilc_vif *vif)
netdev_err(vif->ndev, "conn_result = NULL\n"); netdev_err(vif->ndev, "conn_result = NULL\n");
} }
scan_while_connected = false;
hif_drv->hif_state = HOST_IF_IDLE; hif_drv->hif_state = HOST_IF_IDLE;
eth_zero_addr(hif_drv->assoc_bssid); eth_zero_addr(hif_drv->assoc_bssid);
...@@ -3339,8 +3326,6 @@ int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) ...@@ -3339,8 +3326,6 @@ int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
vif = netdev_priv(dev); vif = netdev_priv(dev);
wilc = vif->wilc; wilc = vif->wilc;
scan_while_connected = false;
init_completion(&hif_wait_response); init_completion(&hif_wait_response);
hif_drv = kzalloc(sizeof(*hif_drv), GFP_KERNEL); hif_drv = kzalloc(sizeof(*hif_drv), GFP_KERNEL);
...@@ -3436,8 +3421,6 @@ int wilc_deinit(struct wilc_vif *vif) ...@@ -3436,8 +3421,6 @@ int wilc_deinit(struct wilc_vif *vif)
hif_drv->hif_state = HOST_IF_IDLE; hif_drv->hif_state = HOST_IF_IDLE;
scan_while_connected = false;
memset(&msg, 0, sizeof(struct host_if_msg)); memset(&msg, 0, sizeof(struct host_if_msg));
if (clients_count == 1) { if (clients_count == 1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment