arch/arm/src: Return ENOTTY when the ioctl command is not recognized.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user