diff --git a/fs/smartfs/smartfs_smart.c b/fs/smartfs/smartfs_smart.c index d41476065a90b..bc4e6477cdfa3 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; }