Commit 8d4279c7 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: fix line over 80 chars issue in host_int_handle_disconnect()

Fix line over 80 char issue in host_int_handle_disconnect() by using
temp variable to hold the 'wilc_connect_result' function pointer.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08268f11
...@@ -1396,6 +1396,7 @@ static inline void host_int_handle_disconnect(struct wilc_vif *vif) ...@@ -1396,6 +1396,7 @@ static inline void host_int_handle_disconnect(struct wilc_vif *vif)
{ {
struct disconnect_info disconn_info; struct disconnect_info disconn_info;
struct host_if_drv *hif_drv = vif->hif_drv; struct host_if_drv *hif_drv = vif->hif_drv;
wilc_connect_result conn_result = hif_drv->usr_conn_req.conn_result;
memset(&disconn_info, 0, sizeof(struct disconnect_info)); memset(&disconn_info, 0, sizeof(struct disconnect_info));
...@@ -1408,13 +1409,12 @@ static inline void host_int_handle_disconnect(struct wilc_vif *vif) ...@@ -1408,13 +1409,12 @@ static inline void host_int_handle_disconnect(struct wilc_vif *vif)
disconn_info.ie = NULL; disconn_info.ie = NULL;
disconn_info.ie_len = 0; disconn_info.ie_len = 0;
if (hif_drv->usr_conn_req.conn_result) { if (conn_result) {
wilc_optaining_ip = false; wilc_optaining_ip = false;
wilc_set_power_mgmt(vif, 0, 0); wilc_set_power_mgmt(vif, 0, 0);
hif_drv->usr_conn_req.conn_result(CONN_DISCONN_EVENT_DISCONN_NOTIF, conn_result(CONN_DISCONN_EVENT_DISCONN_NOTIF, NULL, 0,
NULL, 0, &disconn_info, &disconn_info, hif_drv->usr_conn_req.arg);
hif_drv->usr_conn_req.arg);
} else { } else {
netdev_err(vif->ndev, "Connect result NULL\n"); netdev_err(vif->ndev, "Connect result NULL\n");
} }
......
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