Commit 432f5633 authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Greg Kroah-Hartman

staging: rtl8723au: Fixes unnecessary return warning

This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
WARNING: void function return statements are not generally useful
Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Reviewed-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 78f73d92
...@@ -2656,8 +2656,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da) ...@@ -2656,8 +2656,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)
pattrib->last_txcmdsz = pattrib->pktlen; pattrib->last_txcmdsz = pattrib->pktlen;
dump_mgntframe23a(padapter, pmgntframe); dump_mgntframe23a(padapter, pmgntframe);
return;
} }
static int _issue_probereq(struct rtw_adapter *padapter, static int _issue_probereq(struct rtw_adapter *padapter,
...@@ -2957,8 +2955,6 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta, ...@@ -2957,8 +2955,6 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta,
rtw_wep_encrypt23a(padapter, pmgntframe); rtw_wep_encrypt23a(padapter, pmgntframe);
DBG_8723A("%s\n", __func__); DBG_8723A("%s\n", __func__);
dump_mgntframe23a(padapter, pmgntframe); dump_mgntframe23a(padapter, pmgntframe);
return;
} }
#ifdef CONFIG_8723AU_AP_MODE #ifdef CONFIG_8723AU_AP_MODE
...@@ -3338,8 +3334,6 @@ static void issue_assocreq(struct rtw_adapter *padapter) ...@@ -3338,8 +3334,6 @@ static void issue_assocreq(struct rtw_adapter *padapter)
} }
} else } else
kfree(pmlmepriv->assoc_req); kfree(pmlmepriv->assoc_req);
return;
} }
/* when wait_ack is true, this function should be called at process context */ /* when wait_ack is true, this function should be called at process context */
...@@ -4102,8 +4096,6 @@ static void rtw_site_survey(struct rtw_adapter *padapter) ...@@ -4102,8 +4096,6 @@ static void rtw_site_survey(struct rtw_adapter *padapter)
pmlmeext->chan_scan_time = SURVEY_TO; pmlmeext->chan_scan_time = SURVEY_TO;
pmlmeext->sitesurvey_res.state = SCAN_DISABLE; pmlmeext->sitesurvey_res.state = SCAN_DISABLE;
} }
return;
} }
/* collect bss info from Beacon and Probe request/response frames. */ /* collect bss info from Beacon and Probe request/response frames. */
...@@ -4759,8 +4751,6 @@ void report_survey_event23a(struct rtw_adapter *padapter, ...@@ -4759,8 +4751,6 @@ void report_survey_event23a(struct rtw_adapter *padapter,
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
pmlmeext->sitesurvey_res.bss_cnt++; pmlmeext->sitesurvey_res.bss_cnt++;
return;
} }
void report_surveydone_event23a(struct rtw_adapter *padapter) void report_surveydone_event23a(struct rtw_adapter *padapter)
...@@ -4802,8 +4792,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter) ...@@ -4802,8 +4792,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter)
DBG_8723A("survey done event(%x)\n", psurveydone_evt->bss_cnt); DBG_8723A("survey done event(%x)\n", psurveydone_evt->bss_cnt);
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
return;
} }
void report_join_res23a(struct rtw_adapter *padapter, int res) void report_join_res23a(struct rtw_adapter *padapter, int res)
...@@ -4850,8 +4838,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res) ...@@ -4850,8 +4838,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)
rtw_joinbss_event_prehandle23a(padapter, (u8 *)&pjoinbss_evt->network); rtw_joinbss_event_prehandle23a(padapter, (u8 *)&pjoinbss_evt->network);
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
return;
} }
void report_del_sta_event23a(struct rtw_adapter *padapter, void report_del_sta_event23a(struct rtw_adapter *padapter,
...@@ -4906,8 +4892,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter, ...@@ -4906,8 +4892,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter,
DBG_8723A("report_del_sta_event23a: delete STA, mac_id =%d\n", mac_id); DBG_8723A("report_del_sta_event23a: delete STA, mac_id =%d\n", mac_id);
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
return;
} }
void report_add_sta_event23a(struct rtw_adapter *padapter, void report_add_sta_event23a(struct rtw_adapter *padapter,
...@@ -4951,8 +4935,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter, ...@@ -4951,8 +4935,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter,
DBG_8723A("report_add_sta_event23a: add STA\n"); DBG_8723A("report_add_sta_event23a: add STA\n");
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
return;
} }
/**************************************************************************** /****************************************************************************
...@@ -5394,8 +5376,6 @@ static void link_timer_hdl(unsigned long data) ...@@ -5394,8 +5376,6 @@ static void link_timer_hdl(unsigned long data)
issue_assocreq(padapter); issue_assocreq(padapter);
set_link_timer(pmlmeext, REASSOC_TO); set_link_timer(pmlmeext, REASSOC_TO);
} }
return;
} }
static void addba_timer_hdl(unsigned long data) static void addba_timer_hdl(unsigned long data)
......
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