]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: add missing blank lines after declarations
authorOskar Ray-Frayssinet <rayfraytech@gmail.com>
Sat, 14 Mar 2026 12:23:25 +0000 (13:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 15:58:18 +0000 (16:58 +0100)
Add missing blank lines after variable declarations in several files
throughout the rtl8723bs driver to comply with kernel coding style.

Signed-off-by: Oskar Ray-Frayssinet <rayfraytech@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260314122325.7877-1-rayfraytech@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_btcoex.c
drivers/staging/rtl8723bs/hal/hal_com.c
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
drivers/staging/rtl8723bs/hal/sdio_halinit.c

index 9c84f4cf1ddaeeff02e0794bfd4652bc9cc1c776..2a2dd60be8bb9442d20ef2aa898d62af99c7e097 100644 (file)
@@ -364,6 +364,7 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
        case BTC_GET_U4_WIFI_TRAFFIC_DIRECTION:
                {
                        struct rt_link_detect_t *plinkinfo;
+
                        plinkinfo = &padapter->mlmepriv.link_detect_info;
 
                        if (plinkinfo->num_tx_ok_in_period > plinkinfo->num_rx_ok_in_period)
index a7720f821823ee4728a26d25ba17bbb741ab0e8f..50370b14ce7c57b8344cb1bb1b32ab21e048f818 100644 (file)
@@ -616,6 +616,7 @@ void SetHwReg(struct adapter *adapter, u8 variable, u8 *val)
        case HW_VAR_DM_FUNC_SET:
                if (*((u32 *)val) == DYNAMIC_ALL_FUNC_ENABLE) {
                        struct dm_priv *dm = &hal_data->dmpriv;
+
                        dm->DMFlag = dm->InitDMFlag;
                        odm->SupportAbility = dm->InitODMFlag;
                } else {
@@ -727,6 +728,7 @@ void SetHalODMVar(
        case HAL_ODM_STA_INFO:
                {
                        struct sta_info *psta = pValue1;
+
                        if (bSet) {
                                ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS, psta->mac_id, psta);
                        } else {
index 61c6b6e10de81b4a434d7f1a58bf6463bb1d40ed..bdd595a99b98097203c98b6fd2bddb1ce8eebd86 100644 (file)
@@ -424,6 +424,7 @@ void PHY_SetTxPowerIndexByRateSection(
 
        if (RateSection == CCK) {
                u8 cckRates[]   = {MGN_1M, MGN_2M, MGN_5_5M, MGN_11M};
+
                PHY_SetTxPowerIndexByRateArray(padapter, RFPath,
                                             pHalData->CurrentChannelBW,
                                             Channel, cckRates,
@@ -431,6 +432,7 @@ void PHY_SetTxPowerIndexByRateSection(
 
        } else if (RateSection == OFDM) {
                u8 ofdmRates[]  = {MGN_6M, MGN_9M, MGN_12M, MGN_18M, MGN_24M, MGN_36M, MGN_48M, MGN_54M};
+
                PHY_SetTxPowerIndexByRateArray(padapter, RFPath,
                                               pHalData->CurrentChannelBW,
                                               Channel, ofdmRates,
@@ -438,6 +440,7 @@ void PHY_SetTxPowerIndexByRateSection(
 
        } else if (RateSection == HT_MCS0_MCS7) {
                u8 htRates1T[]  = {MGN_MCS0, MGN_MCS1, MGN_MCS2, MGN_MCS3, MGN_MCS4, MGN_MCS5, MGN_MCS6, MGN_MCS7};
+
                PHY_SetTxPowerIndexByRateArray(padapter, RFPath,
                                               pHalData->CurrentChannelBW,
                                               Channel, htRates1T,
@@ -501,6 +504,7 @@ s8 PHY_GetTxPowerTrackingOffset(struct adapter *padapter, u8 RFPath, u8 Rate)
 u8 PHY_GetRateIndexOfTxPowerByRate(u8 Rate)
 {
        u8 index = 0;
+
        switch (Rate) {
        case MGN_1M:
                index = 0;
@@ -857,6 +861,7 @@ void PHY_SetTxPowerLimit(
 void Hal_ChannelPlanToRegulation(struct adapter *Adapter, u16 ChannelPlan)
 {
        struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
+
        pHalData->Regulation2_4G = TXPWR_LMT_WW;
 
        switch (ChannelPlan) {
index af6cdda8238d8a65446490d6a6f471e048b7f1f1..12416e499ac35b9ab20298451636b884d1c6292f 100644 (file)
@@ -672,6 +672,7 @@ void rtl8723b_download_rsvd_page(struct adapter *padapter, u8 mstatus)
                if (padapter->bSurpriseRemoved || padapter->bDriverStopped) {
                } else {
                        struct pwrctrl_priv *pwrctl = adapter_to_pwrctl(padapter);
+
                        pwrctl->fw_psmode_iface_id = padapter->iface_id;
                }
 
@@ -935,6 +936,7 @@ void rtl8723b_download_BTCoex_AP_mode_rsvd_page(struct adapter *padapter)
 
        if (bcn_valid) {
                struct pwrctrl_priv *pwrctl = adapter_to_pwrctl(padapter);
+
                pwrctl->fw_psmode_iface_id = padapter->iface_id;
        }
 
index 513d0c346c5e9dc6c4125a77e8eaaebdefee80ea..e794fe3caf9d6d0c916302e8f63769541c156a93 100644 (file)
@@ -1631,6 +1631,7 @@ static void rtl8723b_cal_txdesc_chksum(struct tx_desc *ptxdesc)
 static u8 fill_txdesc_sectype(struct pkt_attrib *pattrib)
 {
        u8 sectype = 0;
+
        if ((pattrib->encrypt > 0) && !pattrib->bswenc) {
                switch (pattrib->encrypt) {
                /*  SEC_TYPE */
@@ -2031,6 +2032,7 @@ static void hw_var_set_bcn_func(struct adapter *padapter, u8 variable, u8 *val)
                rtw_write8(padapter, bcn_ctrl_reg, (EN_BCN_FUNCTION | EN_TXBCN_RPT));
        else {
                u8 val8;
+
                val8 = rtw_read8(padapter, bcn_ctrl_reg);
                val8 &= ~(EN_BCN_FUNCTION | EN_TXBCN_RPT);
 
@@ -2225,6 +2227,7 @@ s32 c2h_id_filter_ccx_8723b(u8 *buf)
 {
        struct c2h_evt_hdr_88xx *c2h_evt = (struct c2h_evt_hdr_88xx *)buf;
        s32 ret = false;
+
        if (c2h_evt->id == C2H_CCX_TX_RPT)
                ret = true;
 
@@ -2314,6 +2317,7 @@ void C2HPacketHandler_8723B(struct adapter *padapter, u8 *pbuffer, u16 length)
 {
        struct c2h_evt_hdr_t    C2hEvent;
        u8 *tmpBuf = NULL;
+
        C2hEvent.CmdID = pbuffer[0];
        C2hEvent.CmdSeq = pbuffer[1];
        C2hEvent.CmdLen = length-2;
@@ -2397,6 +2401,7 @@ void SetHwReg8723B(struct adapter *padapter, u8 variable, u8 *val)
        case HW_VAR_CHECK_BSSID:
                {
                        u32 val32;
+
                        val32 = rtw_read32(padapter, REG_RCR);
                        if (*val)
                                val32 |= RCR_CBSSID_DATA|RCR_CBSSID_BCN;
index 6d5e531505f9aaf1308f2f9d6f7c40fcea16e215..7fac1c2ba8e0fbfad27eaf422136e429c08533cc 100644 (file)
@@ -575,6 +575,7 @@ static void phy_SetRegBW_8723B(
 )
 {
        u16 RegRfMod_BW, u2tmp = 0;
+
        RegRfMod_BW = rtw_read16(Adapter, REG_TRXPTCL_CTL_8723B);
 
        switch (CurrentBW) {
index 5faac9f28b024403ecef99d13afeb7062ac11b21..cab4707091e2b8d3e2d74fc3501ed0648a6e0db5 100644 (file)
@@ -143,6 +143,7 @@ static void update_recvframe_phyinfo(union recv_frame *precvframe,
                }
        } else if (pkt_info.to_self || pkt_info.is_beacon) {
                u32 adhoc_state = WIFI_ADHOC_STATE | WIFI_ADHOC_MASTER_STATE;
+
                if (check_fwstate(&padapter->mlmepriv, adhoc_state))
                        if (psta)
                                precvframe->u.hdr.psta = psta;
index 379d29d3f9d3b5207d86446cc584f2a784b18f62..f50726d2ed0c9178ad2c6bce4e7d4c4018ae4abf 100644 (file)
@@ -240,6 +240,7 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv
                                                if (pxmitbuf->len > 0 &&
                                                    pxmitbuf->priv_data) {
                                                        struct xmit_frame *pframe;
+
                                                        pframe = (struct xmit_frame *)pxmitbuf->priv_data;
                                                        pframe->agg_num = k;
                                                        pxmitbuf->agg_num = k;
@@ -324,6 +325,7 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv
                if (pxmitbuf) {
                        if (pxmitbuf->len > 0) {
                                struct xmit_frame *pframe;
+
                                pframe = (struct xmit_frame *)pxmitbuf->priv_data;
                                pframe->agg_num = k;
                                pxmitbuf->agg_num = k;
index e32f051ed4151f527a048f497349a8be40b2eddf..f2f73c65a636a86c022cc4cd219fafb865a10feb 100644 (file)
@@ -214,6 +214,7 @@ static void _InitNormalChipOneOutEpPriority(struct adapter *Adapter)
        struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
 
        u16 value = 0;
+
        switch (pHalData->OutEpQueueSel) {
        case TX_SELE_HQ:
                value = QUEUE_HIGH;
@@ -341,6 +342,7 @@ static void _InitTransferPageSize(struct adapter *padapter)
        /*  Tx page size is always 128. */
 
        u8 value8;
+
        value8 = _PSRX(PBP_128) | _PSTX(PBP_128);
        rtw_write8(padapter, REG_PBP, value8);
 }
@@ -1147,6 +1149,7 @@ void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val)
        case HW_VAR_SET_REQ_FW_PS:
                {
                        u8 req_fw_ps = 0;
+
                        req_fw_ps = rtw_read8(padapter, 0x8f);
                        req_fw_ps |= 0x10;
                        rtw_write8(padapter, 0x8f, req_fw_ps);