4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 03:30:26 +08:00

[devfs] F_GETFL/F_SETFL should be handled by the drivers.

This commit is contained in:
guozhanxin 2021-07-08 16:37:07 +08:00
parent 3bc6d7c414
commit 8102502b98

View File

@ -157,7 +157,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
return -EINVAL;
/* regular file system fd */
if (fd->type == FT_REGULAR || fd->type == FT_DEVICE)
if (fd->type == FT_REGULAR)
{
switch (cmd)
{