Fix 'equality comparison with extraneous parentheses' warning/error

This commit is contained in:
Andrey Gusakov 2023-04-05 18:17:28 +03:00 committed by rusefillc
parent 342e7d1ac6
commit d79ef84e40
1 changed files with 2 additions and 2 deletions

View File

@ -1330,11 +1330,11 @@ static uint8_t FLASH_OB_GetRDP(void)
{ {
uint8_t readstatus = OB_RDP_LEVEL_0; uint8_t readstatus = OB_RDP_LEVEL_0;
if((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_2)) if (*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_2)
{ {
readstatus = OB_RDP_LEVEL_2; readstatus = OB_RDP_LEVEL_2;
} }
else if((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_1)) else if (*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_1)
{ {
readstatus = OB_RDP_LEVEL_1; readstatus = OB_RDP_LEVEL_1;
} }