From c9a505be37854caa32053c1d7795284adb0e1c61 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 24 Dec 2017 10:21:33 +0800 Subject: [PATCH] [BSP] fix the compiling issue in AT91SAM9260 --- bsp/at91sam9260/drivers/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/at91sam9260/drivers/macb.c b/bsp/at91sam9260/drivers/macb.c index fd1f508d3..26400c62d 100644 --- a/bsp/at91sam9260/drivers/macb.c +++ b/bsp/at91sam9260/drivers/macb.c @@ -876,7 +876,7 @@ int rt_hw_macb_init(void) if (ret != RT_EOK) { rt_kprintf("AT91 EMAC initialized failed\n"); - return; + return -1; } rt_sem_init(&macb_device.tx_ack, "tx_ack", 0, RT_IPC_FLAG_FIFO); rt_sem_init(&macb_device.tx_lock, "tx_lock", 1, RT_IPC_FLAG_FIFO);