Skip to content

Commit 204376f

Browse files
committed
Modify the return code with using macro
1 parent e5fac04 commit 204376f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bsp/mini2440/drivers/sdcard.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ int rt_hw_sdcard_init(void)
574574
{
575575
rt_kprintf("allocate partition sector buffer failed\n");
576576

577-
return -1;
577+
return -RT_ERROR;
578578
}
579579
status = sd_readblock(0, sector);
580580
if (status == RT_EOK)
@@ -637,7 +637,7 @@ int rt_hw_sdcard_init(void)
637637
/* release sector buffer */
638638
rt_free(sector);
639639

640-
return -1;
640+
return -RT_ERROR;
641641
}
642642
else
643643
{

bsp/mini2440/drivers/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ int rt_hw_uart_init(void)
196196
rt_hw_interrupt_install(_hwserial2.irqno, rt_hw_uart_isr, &_serial2, "uart2");
197197
rt_hw_interrupt_umask(INTUART2);
198198

199-
return 0;
199+
return RT_EOK;
200200
}
201201

202202
INIT_BOARD_EXPORT(rt_hw_uart_init);

0 commit comments

Comments
 (0)