提交 63193272 编写于 作者: L luohui2320@gmail.com

fix return value type error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2061 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 4d0338fd
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册