From 63193272592d0f74635bfdf74a047be7c6376411 Mon Sep 17 00:00:00 2001 From: "luohui2320@gmail.com" Date: Sun, 15 Apr 2012 07:51:34 +0000 Subject: [PATCH] fix return value type error git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2061 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/at91sam9260/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/at91sam9260/macb.c b/bsp/at91sam9260/macb.c index f26a622899..9f545aa8f2 100755 --- a/bsp/at91sam9260/macb.c +++ b/bsp/at91sam9260/macb.c @@ -471,7 +471,7 @@ rt_err_t rt_macb_tx( rt_device_t dev, struct pbuf* p) buf = rt_malloc(p->tot_len); if (!buf) { rt_kprintf("%s:alloc buf failed\n", __func__); - return NULL; + return -RT_ENOMEM; } bufptr = buf;