summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbsp/at91sam9260/macb.c2
1 files changed, 1 insertions, 1 deletions
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;