Skip to contentSkip to conversation

staging: rtl8723bs: rtw_ap: fix line wrapping and logical continuation checks

PATCH In review Andria Shengelia 2 participants 2 messages Aug 9 – Sep 1 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: rtw_ap: fix line wrapping and logical continuation checks

Reformat multi-line conditional expression wrapping in rtw_ap.c to fix checkpatch.pl checks regarding logical continuations being placed at the beginning of lines and lines ending with opening parentheses.

---
 drivers/staging/rtl8723bs/core/rtw_ap.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +3 -5
index a6dc88dd4..9c14ba1dc 100644
@@ -258,11 +258,9 @@ void expire_timeout_chk(struct adapter *padapter)
 		} else {
 			/* 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)
-			)
+			if (psta->sleepq_len > (NR_XMITFRAME / pstapriv->asoc_list_cnt) &&
+			    padapter->xmitpriv.free_xmitframe_cnt <
+			    (NR_XMITFRAME / pstapriv->asoc_list_cnt) / 2)
 				wakeup_sta_to_xmit(padapter, psta);
 		}
 	}
Signature · 1 line
2.55.0
#1 lore raw
Quoted 32 lines · Andria Shengelia

Reformat multi-line conditional expression wrapping in rtw_ap.c to fix checkpatch.pl checks regarding logical continuations being placed at the beginning of lines and lines ending with opening parentheses.

---
 drivers/staging/rtl8723bs/core/rtw_ap.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +3 -5
index a6dc88dd4..9c14ba1dc 100644
@@ -258,11 +258,9 @@ void expire_timeout_chk(struct adapter *padapter)
 		} else {
 			/* 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)
-			)
+			if (psta->sleepq_len > (NR_XMITFRAME / pstapriv->asoc_list_cnt) &&
+			    padapter->xmitpriv.free_xmitframe_cnt <
+			    (NR_XMITFRAME / pstapriv->asoc_list_cnt) / 2)
 				wakeup_sta_to_xmit(padapter, psta);
 		}
 	}
Signature · 1 line
2.55.0

Does not apply to the current staging-testing branch :(

Please rebase and resend.

thanks,

greg k-h