mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
arch/arm/src: Return ENOTTY when the ioctl command is not recognized.
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
a793369815
commit
465a13c2cb
@@ -869,7 +869,7 @@ static int cxd56_adc_ioctl(FAR struct file *filep, int cmd,
|
||||
else
|
||||
{
|
||||
aerr("Unrecognized cmd: %d\n", cmd);
|
||||
ret = -EINVAL;
|
||||
ret = -ENOTTY;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1692,7 +1692,7 @@ static int stm32_hrtim_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
default:
|
||||
{
|
||||
ret = -ENOSYS;
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user