Skip to content

Commit

Permalink
smartfs: return -ENOTTY if ioctl command is not found
Browse files Browse the repository at this point in the history
The upper layer expects -ENOTTY is returned if ioctl command is not
found in file system specific implementation.

Signed-off-by: Michal Lenc <[email protected]>
  • Loading branch information
michallenc authored and xiaoxiang781216 committed Oct 5, 2024
1 parent fb7fe18 commit f778660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/smartfs/smartfs_smart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ static int smartfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
}
break;
default:
ret = -ENOSYS;
ret = -ENOTTY;
break;
}

Expand Down

0 comments on commit f778660

Please sign in to comment.