summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-03-17 00:12:16 -0400
committerMan, Jianting (Meco) <[email protected]>2023-03-20 00:06:16 -0400
commit0f461e870c481a24ce2690cca1949706bb80f9e7 (patch)
treee77c8813658be76824bb848346cf9ef2340806f2 /components/drivers/include
parentde963feef4c5075626858c97413186fc2a309ffe (diff)
[errno code][-RT_ERROR] fix that use RT_ERROR without -
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/usb_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/usb_host.h b/components/drivers/include/drivers/usb_host.h
index 95dd1ff066..e3339694e5 100644
--- a/components/drivers/include/drivers/usb_host.h
+++ b/components/drivers/include/drivers/usb_host.h
@@ -236,7 +236,7 @@ rt_inline rt_err_t rt_usb_hcd_alloc_pipe(uhcd_t hcd, upipe_t* pipe, uinst_t inst
*pipe = (upipe_t)rt_malloc(sizeof(struct upipe));
if(*pipe == RT_NULL)
{
- return RT_ERROR;
+ return -RT_ERROR;
}
rt_memset(*pipe,0,sizeof(struct upipe));
(*pipe)->inst = inst;