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
+1 -1
View File
@@ -869,7 +869,7 @@ static int cxd56_adc_ioctl(FAR struct file *filep, int cmd,
else else
{ {
aerr("Unrecognized cmd: %d\n", cmd); aerr("Unrecognized cmd: %d\n", cmd);
ret = -EINVAL; ret = -ENOTTY;
} }
} }
break; break;
+1 -1
View File
@@ -1692,7 +1692,7 @@ static int stm32_hrtim_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{ {
default: default:
{ {
ret = -ENOSYS; ret = -ENOTTY;
break; break;
} }
} }