mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +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
|
else
|
||||||
{
|
{
|
||||||
aerr("Unrecognized cmd: %d\n", cmd);
|
aerr("Unrecognized cmd: %d\n", cmd);
|
||||||
ret = -EINVAL;
|
ret = -ENOTTY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user