summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-04-15 07:51:34 +0000
committer[email protected] <[email protected]>2012-04-15 07:51:34 +0000
commit63193272592d0f74635bfdf74a047be7c6376411 (patch)
treeeeac14f8cbade8e76061b31e12aeb0b066ab31bf /bsp
parent4d0338fd263eac3c94320fd21fee6f30723f9d6e (diff)
fix return value type error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2061 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
-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;