nuttx/drivers:Modify errcode returned by relay_ioctl

Fixed system function call failure due to return errcode error

Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
This commit is contained in:
chenzhijia 2024-08-07 10:28:55 +08:00 committed by Xiang Xiao
parent 37e1f5db47
commit f526b91165

View File

@ -116,7 +116,7 @@ static int relay_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
} }
else else
{ {
ret = -ENOTSUP; ret = -ENOTTY;
} }
break; break;
} }