Commit 35659639 authored by Shobhit Kukreti's avatar Shobhit Kukreti Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: Fix Brace Style Issues in if/else statements

Cleaned Up code to fix brace style issues reported by checkpatch:

-space required before the open brace '{'
-Unbalanced braces around if/else statements
Signed-off-by: default avatarShobhit Kukreti <shobhitkukreti@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d47f4db7
...@@ -112,9 +112,9 @@ void DBG_BT_INFO(u8 *dbgmsg) ...@@ -112,9 +112,9 @@ void DBG_BT_INFO(u8 *dbgmsg)
/* */ /* */
static u8 halbtcoutsrc_IsBtCoexistAvailable(PBTC_COEXIST pBtCoexist) static u8 halbtcoutsrc_IsBtCoexistAvailable(PBTC_COEXIST pBtCoexist)
{ {
if (!pBtCoexist->bBinded || !pBtCoexist->Adapter){ if (!pBtCoexist->bBinded || !pBtCoexist->Adapter)
return false; return false;
}
return true; return true;
} }
...@@ -256,13 +256,11 @@ static void halbtcoutsrc_AggregationCheck(PBTC_COEXIST pBtCoexist) ...@@ -256,13 +256,11 @@ static void halbtcoutsrc_AggregationCheck(PBTC_COEXIST pBtCoexist)
padapter = pBtCoexist->Adapter; padapter = pBtCoexist->Adapter;
bNeedToAct = false; bNeedToAct = false;
if (pBtCoexist->btInfo.bRejectAggPkt) if (pBtCoexist->btInfo.bRejectAggPkt) {
rtw_btcoex_RejectApAggregatedPacket(padapter, true); rtw_btcoex_RejectApAggregatedPacket(padapter, true);
else { } else {
if (pBtCoexist->btInfo.bPreBtCtrlAggBufSize != if (pBtCoexist->btInfo.bPreBtCtrlAggBufSize !=
pBtCoexist->btInfo.bBtCtrlAggBufSize){ pBtCoexist->btInfo.bBtCtrlAggBufSize) {
bNeedToAct = true; bNeedToAct = true;
pBtCoexist->btInfo.bPreBtCtrlAggBufSize = pBtCoexist->btInfo.bBtCtrlAggBufSize; pBtCoexist->btInfo.bPreBtCtrlAggBufSize = pBtCoexist->btInfo.bBtCtrlAggBufSize;
} }
...@@ -816,11 +814,10 @@ static void halbtcoutsrc_WriteLocalReg1Byte(void *pBtcContext, u32 RegAddr, u8 D ...@@ -816,11 +814,10 @@ static void halbtcoutsrc_WriteLocalReg1Byte(void *pBtcContext, u32 RegAddr, u8 D
PBTC_COEXIST pBtCoexist = (PBTC_COEXIST)pBtcContext; PBTC_COEXIST pBtCoexist = (PBTC_COEXIST)pBtcContext;
struct adapter *Adapter = pBtCoexist->Adapter; struct adapter *Adapter = pBtCoexist->Adapter;
if (BTC_INTF_SDIO == pBtCoexist->chipInterface) { if (BTC_INTF_SDIO == pBtCoexist->chipInterface)
rtw_write8(Adapter, SDIO_LOCAL_BASE | RegAddr, Data); rtw_write8(Adapter, SDIO_LOCAL_BASE | RegAddr, Data);
} else { else
rtw_write8(Adapter, RegAddr, Data); rtw_write8(Adapter, RegAddr, Data);
}
} }
static void halbtcoutsrc_SetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask, u32 Data) static void halbtcoutsrc_SetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask, u32 Data)
...@@ -1196,13 +1193,13 @@ void EXhalbtcoutsrc_SpecialPacketNotify(PBTC_COEXIST pBtCoexist, u8 pktType) ...@@ -1196,13 +1193,13 @@ void EXhalbtcoutsrc_SpecialPacketNotify(PBTC_COEXIST pBtCoexist, u8 pktType)
if (pBtCoexist->bManualControl) if (pBtCoexist->bManualControl)
return; return;
if (PACKET_DHCP == pktType) if (PACKET_DHCP == pktType) {
packetType = BTC_PACKET_DHCP; packetType = BTC_PACKET_DHCP;
else if (PACKET_EAPOL == pktType) } else if (PACKET_EAPOL == pktType) {
packetType = BTC_PACKET_EAPOL; packetType = BTC_PACKET_EAPOL;
else if (PACKET_ARP == pktType) } else if (PACKET_ARP == pktType) {
packetType = BTC_PACKET_ARP; packetType = BTC_PACKET_ARP;
else { } else {
packetType = BTC_PACKET_UNKNOWN; packetType = BTC_PACKET_UNKNOWN;
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment