Commit b4ed18b1 authored by Elena Oat's avatar Elena Oat Committed by Greg Kroah-Hartman

Staging: rtl8188eu: Fix warnings of space prohibited.

This patch fixes the warnings of "space prohibited between function name
and open parenthesis" in file rtw_mlme.c.

While at it, I have also removed unneccessary tabs. Also one comment
that didn't make sense was removed.
Signed-off-by: default avatarElena Oat <oat.elena@gmail.com>
Acked-by: default avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a318c9e0
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
extern unsigned char MCS_rate_2R[16]; extern unsigned char MCS_rate_2R[16];
extern unsigned char MCS_rate_1R[16]; extern unsigned char MCS_rate_1R[16];
int _rtw_init_mlme_priv (struct adapter *padapter) int _rtw_init_mlme_priv(struct adapter *padapter)
{ {
int i; int i;
u8 *pbuf; u8 *pbuf;
...@@ -89,7 +89,7 @@ int _rtw_init_mlme_priv (struct adapter *padapter) ...@@ -89,7 +89,7 @@ int _rtw_init_mlme_priv (struct adapter *padapter)
return res; return res;
} }
#if defined (CONFIG_88EU_AP_MODE) #if defined(CONFIG_88EU_AP_MODE)
static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen) static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen)
{ {
kfree(*ppie); kfree(*ppie);
...@@ -118,7 +118,7 @@ void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv) ...@@ -118,7 +118,7 @@ void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv)
} }
#endif #endif
void _rtw_free_mlme_priv (struct mlme_priv *pmlmepriv) void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
{ {
rtw_free_mlme_priv_ie_data(pmlmepriv); rtw_free_mlme_priv_ie_data(pmlmepriv);
...@@ -342,17 +342,17 @@ u8 *rtw_get_beacon_interval_from_ie(u8 *ie) ...@@ -342,17 +342,17 @@ u8 *rtw_get_beacon_interval_from_ie(u8 *ie)
return ie + 8; return ie + 8;
} }
int rtw_init_mlme_priv (struct adapter *padapter)/* struct mlme_priv *pmlmepriv) */ int rtw_init_mlme_priv(struct adapter *padapter)
{ {
int res; int res;
res = _rtw_init_mlme_priv(padapter);/* (pmlmepriv); */ res = _rtw_init_mlme_priv(padapter);/* (pmlmepriv); */
return res; return res;
} }
void rtw_free_mlme_priv (struct mlme_priv *pmlmepriv) void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
{ {
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("rtw_free_mlme_priv\n")); RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("rtw_free_mlme_priv\n"));
_rtw_free_mlme_priv (pmlmepriv); _rtw_free_mlme_priv(pmlmepriv);
} }
static struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv) static struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv)
...@@ -1237,7 +1237,7 @@ void rtw_joinbss_event_callback(struct adapter *adapter, u8 *pbuf) ...@@ -1237,7 +1237,7 @@ void rtw_joinbss_event_callback(struct adapter *adapter, u8 *pbuf)
static u8 search_max_mac_id(struct adapter *padapter) static u8 search_max_mac_id(struct adapter *padapter)
{ {
u8 mac_id; u8 mac_id;
#if defined (CONFIG_88EU_AP_MODE) #if defined(CONFIG_88EU_AP_MODE)
u8 aid; u8 aid;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct sta_priv *pstapriv = &padapter->stapriv; struct sta_priv *pstapriv = &padapter->stapriv;
...@@ -1245,7 +1245,7 @@ static u8 search_max_mac_id(struct adapter *padapter) ...@@ -1245,7 +1245,7 @@ static u8 search_max_mac_id(struct adapter *padapter)
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv); struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
#if defined (CONFIG_88EU_AP_MODE) #if defined(CONFIG_88EU_AP_MODE)
if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) {
for (aid = (pstapriv->max_num_sta); aid > 0; aid--) { for (aid = (pstapriv->max_num_sta); aid > 0; aid--) {
if (pstapriv->sta_aid[aid-1] != NULL) if (pstapriv->sta_aid[aid-1] != NULL)
...@@ -1289,7 +1289,7 @@ void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf) ...@@ -1289,7 +1289,7 @@ void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf)
if (rtw_access_ctrl(adapter, pstassoc->macaddr) == false) if (rtw_access_ctrl(adapter, pstassoc->macaddr) == false)
return; return;
#if defined (CONFIG_88EU_AP_MODE) #if defined(CONFIG_88EU_AP_MODE)
if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) {
psta = rtw_get_stainfo(&adapter->stapriv, pstassoc->macaddr); psta = rtw_get_stainfo(&adapter->stapriv, pstassoc->macaddr);
if (psta) { if (psta) {
......
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