drivers: staging: small refactor
Subsystems (2)
PATCH 1/1 drivers: staging: small refactor
Small refactor of 3 files in the staging directory.
--- drivers/staging/mt7621-pci/pci-mt7621.c | 1 - drivers/staging/rtl8188eu/core/rtw_ap.c | 4 +++- drivers/staging/rtl8188eu/core/rtw_xmit.c | 25 +++++++++++++++-------- 3 files changed, 20 insertions(+), 10 deletions(-)
drivers/staging/mt7621-pci/pci-mt7621.c +0 -1
@@ -541,7 +541,6 @@ static void mt7621_pcie_init_ports(struct mt7621_pcie *pcie)if (slot ==1 && tmp && !tmp->enabled)phy_power_off (tmp->phy); - } } }
drivers/staging/rtl8188eu/core/rtw_ap.c +3 -1
@@ -269,7 +269,9 @@ void expire_timeout_chk(struct adapter *padapter) updated =ap_free_sta (padapter, psta, true,WLAN_REASON_DEAUTH_LEAVING ); }else { -/* TODO: Aging mechanism to digest frames in sleep_q to avoid running out of xmitframe */ +/* TODO: Aging mechanism to digest frames in sleep_q +* to avoid running out of xmitframe +*/ if (psta->sleepq_len > (NR_XMITFRAME / pstapriv->asoc_list_cnt) && padapter->xmitpriv.free_xmitframe_cnt < (NR_XMITFRAME / pstapriv->asoc_list_cnt /2 )) { DBG_88E("%s sta:%pM, sleepq_len:%u, free_xmitframe_cnt:%u, asoc_list_cnt:%u, clear sleep_q\n", __func__,
drivers/staging/rtl8188eu/core/rtw_xmit.c +17 -8
@@ -44,7 +44,9 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)u32 max_xmit_extbuf_size =MAX_XMIT_EXTBUF_SZ ;u32 num_xmit_extbuf =NR_XMIT_EXTBUFF ; -/* We don't need to memset padapter->XXX to zero, because adapter is allocated by vzalloc(). */ +/* We don't need to memset padapter->XXX to zero, because adapter is +* allocated by vzalloc(). +*/ spin_lock_init (&pxmitpriv->lock);
@@ -680,7 +682,7 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfrRT_TRACE (_module_rtl871x_xmit_c_, _drv_err_, ("%s: before add mic code!!!\n" , __func__));RT_TRACE (_module_rtl871x_xmit_c_, _drv_err_, ("%s: pattrib->last_txcmdsz=%d!!!\n" , __func__, pattrib->last_txcmdsz));RT_TRACE (_module_rtl871x_xmit_c_, _drv_err_, ("%s: mic[0]=0x%.2x , mic[1]=0x%.2x , mic[2]= 0x%.2x, mic[3]=0x%.2x\n\ -mic[4]= 0x%.2x , mic[5]= 0x%.2x , mic[6]= 0x%.2x , mic[7]= 0x%.2x !!!!\n" , +mic[4]= 0x%.2x , mic[5]= 0x%.2x , mic[6]= 0x%.2x , mic[7]= 0x%.2x !!!!\n" , __func__, mic[0 ], mic[1 ], mic[2 ], mic[3 ], mic[4 ], mic[5 ], mic[6 ], mic[7 ]));/* add mic code and add the mic code length in last_txcmdsz */
@@ -1413,8 +1415,12 @@ struct xmit_frame *rtw_dequeue_xframe(struct xmit_priv *pxmitpriv, struct hw_xmiif (pxmitframe) { phwxmit->accnt--; -/* Remove sta node when there are no pending packets. */ -if (list_empty (&pframe_queue->queue))/* must be done after get_next and before break */ +/* Remove sta node when there are no +* pending packets. +* +* must be done after get_next and before break +*/ +if (list_empty (&pframe_queue->queue))list_del_init (&ptxservq->tx_pending); goto exit; }
@@ -1660,17 +1666,19 @@ int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct xmit_fraif (mcast) {spin_lock_bh (&psta->sleep_q.lock); -if (pstapriv->sta_dz_bitmap) {/* if any one sta is in ps mode */ +/* if any one sta is in ps mode */ +if (pstapriv->sta_dz_bitmap) {list_del_init (&pxmitframe->list);list_add_tail (&pxmitframe->list,get_list_head (&psta->sleep_q)); psta->sleepq_len++; - pstapriv->tim_bitmap |=BIT (0 );/* */ + pstapriv->tim_bitmap |=BIT (0 ); pstapriv->sta_dz_bitmap |=BIT (0 ); -update_beacon (padapter,WLAN_EID_TIM ,NULL , false);/* tx bc/mc packets after update bcn */ +/* tx bc/mc packets after update bcn */ +update_beacon (padapter,WLAN_EID_TIM ,NULL , false); ret = true; }
@@ -1892,7 +1900,8 @@ void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta)if (!psta_bmc)return ; -if ((pstapriv->sta_dz_bitmap &0xfffe ) ==0x0 ) {/* no any sta in ps mode */ +/* no any sta in ps mode */ +if ((pstapriv->sta_dz_bitmap &0xfffe ) ==0x0 ) {spin_lock_bh (&psta_bmc->sleep_q.lock); xmitframe_phead =get_list_head (&psta_bmc->sleep_q);
Signature · 1 line
2.29.2
Greg KH
maintainerQuoted 8 lines · Sotir Danailov
Small refactor of 3 files in the staging directory.
Signed-off-by Sotir Danailov <[email protected]>--- drivers/staging/mt7621-pci/pci-mt7621.c | 1 - drivers/staging/rtl8188eu/core/rtw_ap.c | 4 +++- drivers/staging/rtl8188eu/core/rtw_xmit.c | 25 +++++++++++++++-------- 3 files changed, 20 insertions(+), 10 deletions(-)
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause.
- You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change.
- You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot