mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
smartfs: return -ENOTTY if ioctl command is not found
The upper layer expects -ENOTTY is returned if ioctl command is not found in file system specific implementation. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
@@ -1035,7 +1035,7 @@ static int smartfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ret = -ENOSYS;
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user