summaryrefslogtreecommitdiff
path: root/components/utilities
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-03-16 00:44:05 -0400
committerMan, Jianting (Meco) <[email protected]>2023-03-16 20:21:43 -0400
commitdfddd79b2453ab13d12b69c7db14e2f685175af7 (patch)
tree2f59da3e3389e54872609473f21c1904167822d8 /components/utilities
parente4e88b2f3eff319105a34ec7827c2ee135c9e8b7 (diff)
[errno code][-RT_EINVAL] fix that use RT_EINVAL without -
Diffstat (limited to 'components/utilities')
-rw-r--r--components/utilities/rt-link/src/rtlink_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/rt-link/src/rtlink_dev.c b/components/utilities/rt-link/src/rtlink_dev.c
index 24c45585ea..85d19abd4c 100644
--- a/components/utilities/rt-link/src/rtlink_dev.c
+++ b/components/utilities/rt-link/src/rtlink_dev.c
@@ -321,7 +321,7 @@ rt_err_t rt_link_dev_control(rt_device_t dev, int cmd, void *args)
if (cmd & RT_DEVICE_CTRL_CONFIG)
{
if (args == RT_NULL)
- return RT_EINVAL;
+ return -RT_EINVAL;
RTLINK_SERV(dev).service = ((struct rt_link_service *)args)->service;
RTLINK_SERV(dev).timeout_tx = ((struct rt_link_service *)args)->timeout_tx;
RTLINK_SERV(dev).flag = ((struct rt_link_service *)args)->flag;