Skip to content

Commit 651d29e

Browse files
committed
bsp: k230: fix some cpp_check warnings
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
1 parent a53df5a commit 651d29e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bsp/k230/board/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void init_bss(void)
7171
unsigned int *dst;
7272

7373
dst = &__bss_start;
74-
while (dst < &__bss_end)
74+
while ((rt_ubase_t)dst < (rt_ubase_t)&__bss_end)
7575
{
7676
*dst++ = 0;
7777
}

bsp/k230/drivers/interdrv/uart/drv_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static void _uart_init(void *uart_base)
129129
dlh = bdiv >> 12;
130130
dll = (bdiv - (dlh << 12)) / 16;
131131
dlf = bdiv - (dlh << 12) - dll * 16;
132-
if(dlh == 0 && dll == 0)
132+
if((dlh == 0) && (dll == 0))
133133
{
134134
dll = 1;
135135
dlf = 0;

0 commit comments

Comments
 (0)