chore: remove not needed "expression ? true : false" (#4485)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2023-08-26 04:58:21 +08:00
committed by GitHub
parent 7899f77ee9
commit b6c5ab3954
28 changed files with 62 additions and 63 deletions

View File

@@ -154,7 +154,7 @@ void lv_init(void)
uint32_t endianess_test = 0x11223344;
uint8_t * endianess_test_p = (uint8_t *) &endianess_test;
bool big_endian = endianess_test_p[0] == 0x11 ? true : false;
bool big_endian = endianess_test_p[0] == 0x11;
if(big_endian) {
LV_ASSERT_MSG(LV_BIG_ENDIAN_SYSTEM == 1,