From f778660acad75cf04ed3284099f0f948c517a4a4 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Sat, 5 Oct 2024 12:21:57 +0200 Subject: [PATCH] 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 --- fs/smartfs/smartfs_smart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/smartfs/smartfs_smart.c b/fs/smartfs/smartfs_smart.c index d41476065a..bc4e6477cd 100644 --- a/fs/smartfs/smartfs_smart.c +++ b/fs/smartfs/smartfs_smart.c @@ -1035,7 +1035,7 @@ static int smartfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg) } break; default: - ret = -ENOSYS; + ret = -ENOTTY; break; }