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:
Michal Lenc 2024-10-05 12:21:57 +02:00 committed by Xiang Xiao
parent fb7fe185d8
commit f778660aca
1 changed files with 1 additions and 1 deletions

View File

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