Skip to content

Commit

Permalink
staging: rtl8188eu: Fix block comments warning
Browse files Browse the repository at this point in the history
Align * on each line and move final */ to a new line, to
conform to the kernel coding style for block comments.

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
gs0510 authored and gregkh committed Mar 6, 2017
1 parent e31447f commit de10977
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions drivers/staging/rtl8188eu/core/rtw_mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *
}

/*
return the wlan_network with the matching addr
Shall be calle under atomic context... to avoid possible racing condition...
*/
* return the wlan_network with the matching addr
*
* Shall be called under atomic context... to avoid possible racing condition...
*/
struct wlan_network *rtw_find_network(struct __queue *scanned_queue, u8 *addr)
{
struct list_head *phead, *plist;
Expand Down Expand Up @@ -407,8 +407,8 @@ static void update_current_network(struct adapter *adapter, struct wlan_bssid_ex
}

/*
Caller must hold pmlmepriv->lock first.
*/
* Caller must hold pmlmepriv->lock first.
*/
void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *target)
{
struct list_head *plist, *phead;
Expand All @@ -433,7 +433,8 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t
plist = plist->next;
}
/* If we didn't find a match, then get a new network slot to initialize
* with this beacon's information */
* with this beacon's information
*/
if (phead == plist) {
if (list_empty(&(pmlmepriv->free_bss_pool.queue))) {
/* If there are no more slots, expire the oldest */
Expand Down Expand Up @@ -725,8 +726,8 @@ static void free_scanqueue(struct mlme_priv *pmlmepriv)
}

/*
*rtw_free_assoc_resources: the caller has to lock pmlmepriv->lock
*/
* rtw_free_assoc_resources: the caller has to lock pmlmepriv->lock
*/
void rtw_free_assoc_resources(struct adapter *adapter)
{
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
Expand All @@ -737,8 +738,8 @@ void rtw_free_assoc_resources(struct adapter *adapter)
}

/*
*rtw_free_assoc_resources_locked: the caller has to lock pmlmepriv->lock
*/
* rtw_free_assoc_resources_locked: the caller has to lock pmlmepriv->lock
*/
void rtw_free_assoc_resources_locked(struct adapter *adapter)
{
struct wlan_network *pwlan = NULL;
Expand Down Expand Up @@ -788,8 +789,8 @@ void rtw_free_assoc_resources_locked(struct adapter *adapter)
}

/*
*rtw_indicate_connect: the caller has to lock pmlmepriv->lock
*/
* rtw_indicate_connect: the caller has to lock pmlmepriv->lock
*/
void rtw_indicate_connect(struct adapter *padapter)
{
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
Expand All @@ -814,8 +815,8 @@ void rtw_indicate_connect(struct adapter *padapter)
}

/*
*rtw_indicate_disconnect: the caller has to lock pmlmepriv->lock
*/
* rtw_indicate_disconnect: the caller has to lock pmlmepriv->lock
*/
void rtw_indicate_disconnect(struct adapter *padapter)
{
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
Expand Down Expand Up @@ -1337,9 +1338,9 @@ void rtw_cpwm_event_callback(struct adapter *padapter, u8 *pbuf)
}

/*
* _rtw_join_timeout_handler - Timeout/faliure handler for CMD JoinBss
* @adapter: pointer to struct adapter structure
*/
* _rtw_join_timeout_handler - Timeout/faliure handler for CMD JoinBss
* @adapter: pointer to struct adapter structure
*/
void _rtw_join_timeout_handler (unsigned long data)
{
struct adapter *adapter = (struct adapter *)data;
Expand Down Expand Up @@ -1379,9 +1380,9 @@ void _rtw_join_timeout_handler (unsigned long data)
}

/*
* rtw_scan_timeout_handler - Timeout/Faliure handler for CMD SiteSurvey
* @adapter: pointer to struct adapter structure
*/
* rtw_scan_timeout_handler - Timeout/Faliure handler for CMD SiteSurvey
* @adapter: pointer to struct adapter structure
*/
void rtw_scan_timeout_handler (unsigned long data)
{
struct adapter *adapter = (struct adapter *)data;
Expand Down Expand Up @@ -1436,10 +1437,10 @@ void rtw_dynamic_check_timer_handlder(unsigned long data)
#define RTW_SCAN_RESULT_EXPIRE 2000

/*
* Select a new join candidate from the original @param candidate and @param competitor
* @return true: candidate is updated
* @return false: candidate is not updated
*/
* Select a new join candidate from the original @param candidate and @param competitor
* @return true: candidate is updated
* @return false: candidate is not updated
*/
static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
, struct wlan_network **candidate, struct wlan_network *competitor)
{
Expand Down Expand Up @@ -1490,11 +1491,11 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
}

/*
Calling context:
The caller of the sub-routine will be in critical section...
The caller must hold the following spinlock
pmlmepriv->lock
*/
* Calling context:
* The caller of the sub-routine will be in critical section...
* The caller must hold the following spinlock
* pmlmepriv->lock
*/

int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv)
{
Expand Down

0 comments on commit de10977

Please sign in to comment.