]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
staging: rtl8723bs: Add spaces and line breaks to improve readability
authorAbraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Fri, 18 Apr 2025 09:47:54 +0000 (09:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Apr 2025 10:40:15 +0000 (12:40 +0200)
The code contains no spaces around binary operators with long lines
which reduces readability thereby not adhering to Linux kernel coding
style.

Add white spaces around the binary operators and use line breaks to
increase readability and ensure adherence to Linux kernel coding
styles.

Suggested-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/3b9a0572ad56699b095642fc169c9603e08616e9.1744966511.git.abrahamadekunle50@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_xmit.c

index e2f7b24155242d0ba243efda403b373586cef91d..dfee7b0e9abe97780491e84faf294b6adab6f3bc 100644 (file)
@@ -963,11 +963,14 @@ s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattr
                                        if (SN_LESS(pattrib->seqnum, tx_seq)) {
                                                pattrib->ampdu_en = false;/* AGG BK */
                                        } else if (SN_EQUAL(pattrib->seqnum, tx_seq)) {
-                                               psta->BA_starting_seqctrl[pattrib->priority & 0x0f] = (tx_seq+1)&0xfff;
+                                               psta->BA_starting_seqctrl[pattrib->priority & 0x0f] =
+                                                       (tx_seq + 1) & 0xfff;
 
                                                pattrib->ampdu_en = true;/* AGG EN */
                                        } else {
-                                               psta->BA_starting_seqctrl[pattrib->priority & 0x0f] = (pattrib->seqnum+1)&0xfff;
+                                               psta->BA_starting_seqctrl[pattrib->priority & 0x0f] =
+                                                       (pattrib->seqnum + 1) & 0xfff;
+
                                                pattrib->ampdu_en = true;/* AGG EN */
                                        }
                                }