mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
staging: rtl8723bs: Fix spaces around operator checks in HalHWImg8723B_MAC.c
Fix checkpatch.pl checks in HalHWImg8723B_MAC.c regarding: -Spaces preferred around that operator Adhere to kernel coding style by adding spaces around operators. Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com> Link: https://patch.msgid.link/20260112174227.14922-3-mahad.ibrahim.dev@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b3c36acadc
commit
557913e85d
@@ -187,7 +187,7 @@ void ODM_ReadAndConfig_MP_8723B_MAC_REG(struct dm_odm_t *pDM_Odm)
|
||||
|
||||
for (i = 0; i < ArrayLen; i += 2) {
|
||||
u32 v1 = Array[i];
|
||||
u32 v2 = Array[i+1];
|
||||
u32 v2 = Array[i + 1];
|
||||
|
||||
/* This (offset, data) pair doesn't care the condition. */
|
||||
if (v1 < 0x40000000) {
|
||||
@@ -196,7 +196,7 @@ void ODM_ReadAndConfig_MP_8723B_MAC_REG(struct dm_odm_t *pDM_Odm)
|
||||
} else {
|
||||
/* This line is the beginning of branch. */
|
||||
bool bMatched = true;
|
||||
u8 cCond = (u8)((v1 & (BIT29|BIT28)) >> 28);
|
||||
u8 cCond = (u8)((v1 & (BIT29 | BIT28)) >> 28);
|
||||
|
||||
if (cCond == COND_ELSE) { /* ELSE, ENDIF */
|
||||
bMatched = true;
|
||||
@@ -213,21 +213,21 @@ void ODM_ReadAndConfig_MP_8723B_MAC_REG(struct dm_odm_t *pDM_Odm)
|
||||
|
||||
if (!bMatched) {
|
||||
/* Condition isn't matched. Discard the following (offset, data) pairs. */
|
||||
while (v1 < 0x40000000 && i < ArrayLen-2)
|
||||
while (v1 < 0x40000000 && i < ArrayLen - 2)
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
|
||||
i -= 2; /* prevent from for-loop += 2 */
|
||||
} else { /* Configure matched pairs and skip to end of if-else. */
|
||||
while (v1 < 0x40000000 && i < ArrayLen-2) {
|
||||
while (v1 < 0x40000000 && i < ArrayLen - 2) {
|
||||
odm_ConfigMAC_8723B(pDM_Odm, v1, (u8)v2);
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
}
|
||||
|
||||
/* Keeps reading until ENDIF. */
|
||||
cCond = (u8)((v1 & (BIT29|BIT28)) >> 28);
|
||||
while (cCond != COND_ENDIF && i < ArrayLen-2) {
|
||||
cCond = (u8)((v1 & (BIT29 | BIT28)) >> 28);
|
||||
while (cCond != COND_ENDIF && i < ArrayLen - 2) {
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
cCond = (u8)((v1 & (BIT29|BIT28)) >> 28);
|
||||
cCond = (u8)((v1 & (BIT29 | BIT28)) >> 28);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user