diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c index 0f4bbe8940f..700e09230c9 100644 --- a/fs/fat/fs_fat32.c +++ b/fs/fat/fs_fat32.c @@ -1316,7 +1316,7 @@ static int fat_ioctl(FAR struct file *filep, int cmd, unsigned long arg) /* ioctl calls are just passed through to the contained block driver */ nxmutex_unlock(&fs->fs_lock); - return -ENOSYS; + return -ENOTTY; } /****************************************************************************