arch/arm/src: Return ENOTTY when the ioctl command is not recognized.

This commit is contained in:
Ouss4 2020-06-06 19:05:09 +01:00 committed by Alan Carvalho de Assis
parent a793369815
commit 465a13c2cb
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -1692,7 +1692,7 @@ static int stm32_hrtim_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
default:
{
ret = -ENOSYS;
ret = -ENOTTY;
break;
}
}