mirror of https://gitee.com/openkylin/linux.git
Staging: rtl8723bs: core: Replace return types
Remove unwanted assignments and replace return types. Issue suggested by Coccinelle. Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
41f1308450
commit
2fc489d8ac
|
@ -204,8 +204,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
|
||||||
if (list_empty(&pfree_sta_queue->queue)) {
|
if (list_empty(&pfree_sta_queue->queue)) {
|
||||||
/* spin_unlock_bh(&(pfree_sta_queue->lock)); */
|
/* spin_unlock_bh(&(pfree_sta_queue->lock)); */
|
||||||
spin_unlock_bh(&(pstapriv->sta_hash_lock));
|
spin_unlock_bh(&(pstapriv->sta_hash_lock));
|
||||||
psta = NULL;
|
return NULL;
|
||||||
return psta;
|
|
||||||
} else {
|
} else {
|
||||||
psta = LIST_CONTAINOR(get_next(&pfree_sta_queue->queue), struct sta_info, list);
|
psta = LIST_CONTAINOR(get_next(&pfree_sta_queue->queue), struct sta_info, list);
|
||||||
|
|
||||||
|
@ -586,12 +585,10 @@ u32 rtw_init_bcmc_stainfo(struct adapter *padapter)
|
||||||
|
|
||||||
struct sta_info *rtw_get_bcmc_stainfo(struct adapter *padapter)
|
struct sta_info *rtw_get_bcmc_stainfo(struct adapter *padapter)
|
||||||
{
|
{
|
||||||
struct sta_info *psta;
|
|
||||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||||
|
|
||||||
psta = rtw_get_stainfo(pstapriv, bc_addr);
|
return rtw_get_stainfo(pstapriv, bc_addr);
|
||||||
return psta;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_addr)
|
u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_addr)
|
||||||
|
|
Loading…
Reference in New Issue