mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 18:49:22 -04:00
Staging: rtl8723bs: fix indentation in HalBtc8723b1Ant.c
This commit fixes the following checkpatch.pl errors:
WARNING: suspect code indent for conditional statements (32, 33)
+ if (nCCKLockCounter < 5)
+ nCCKLockCounter++;
WARNING: suspect code indent for conditional statements (32, 33)
+ if (nCCKLockCounter > 0)
+ nCCKLockCounter--;
WARNING: suspect code indent for conditional statements (24, 26)
+ if (nCCKLockCounter > 0)
+ nCCKLockCounter--;
WARNING: suspect code indent for conditional statements (16, 17)
+ if (nCCKLockCounter >= 5)
+ pCoexSta->bCCKLock = true;
WARNING: suspect code indent for conditional statements (16, 17)
+ else
+ pCoexSta->bCCKLock = false;
WARNING: suspect code indent for conditional statements (16, 17)
+ if (nCCKLockCounter == 0)
+ pCoexSta->bCCKLock = false;
WARNING: suspect code indent for conditional statements (16, 17)
+ else
+ pCoexSta->bCCKLock = true;
WARNING: suspect code indent for conditional statements (16, 25)
+ if (bScan || bLink || bRoam) {
+ if (bScan)
WARNING: Statements should start on a tabstop
+ if (bScan)
WARNING: Statements should start on a tabstop
+ else
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Desmond Cheong Zhi Xi <desmondcheongzx@gmail.com>
Link: https://lore.kernel.org/r/20210518044119.2960494-4-desmondcheongzx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
426ddc5298
commit
3750ae9e79
@@ -361,15 +361,15 @@ static void halbtc8723b1ant_MonitorWiFiCtr(struct btc_coexist *pBtCoexist)
|
||||
)
|
||||
) {
|
||||
if (nCCKLockCounter < 5)
|
||||
nCCKLockCounter++;
|
||||
nCCKLockCounter++;
|
||||
} else {
|
||||
if (nCCKLockCounter > 0)
|
||||
nCCKLockCounter--;
|
||||
nCCKLockCounter--;
|
||||
}
|
||||
|
||||
} else {
|
||||
if (nCCKLockCounter > 0)
|
||||
nCCKLockCounter--;
|
||||
nCCKLockCounter--;
|
||||
}
|
||||
} else {
|
||||
if (nCCKLockCounter > 0)
|
||||
@@ -379,14 +379,14 @@ static void halbtc8723b1ant_MonitorWiFiCtr(struct btc_coexist *pBtCoexist)
|
||||
if (!pCoexSta->bPreCCKLock) {
|
||||
|
||||
if (nCCKLockCounter >= 5)
|
||||
pCoexSta->bCCKLock = true;
|
||||
pCoexSta->bCCKLock = true;
|
||||
else
|
||||
pCoexSta->bCCKLock = false;
|
||||
pCoexSta->bCCKLock = false;
|
||||
} else {
|
||||
if (nCCKLockCounter == 0)
|
||||
pCoexSta->bCCKLock = false;
|
||||
pCoexSta->bCCKLock = false;
|
||||
else
|
||||
pCoexSta->bCCKLock = true;
|
||||
pCoexSta->bCCKLock = true;
|
||||
}
|
||||
|
||||
pCoexSta->bPreCCKLock = pCoexSta->bCCKLock;
|
||||
@@ -2084,9 +2084,9 @@ static void halbtc8723b1ant_RunCoexistMechanism(struct btc_coexist *pBtCoexist)
|
||||
pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_ROAM, &bRoam);
|
||||
|
||||
if (bScan || bLink || bRoam) {
|
||||
if (bScan)
|
||||
if (bScan)
|
||||
halbtc8723b1ant_ActionWifiNotConnectedScan(pBtCoexist);
|
||||
else
|
||||
else
|
||||
halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(pBtCoexist);
|
||||
} else
|
||||
halbtc8723b1ant_ActionWifiNotConnected(pBtCoexist);
|
||||
|
||||
Reference in New Issue
Block a user