mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
[errno code][-RT_EINVAL] fix that use RT_EINVAL without -
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
e4e88b2f3e
commit
dfddd79b24
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user