summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-07-09 21:14:42 +0800
committerGitHub <[email protected]>2021-07-09 21:14:42 +0800
commit5bae565f7f021ab13113fc0a9c67fc468d97de02 (patch)
tree18c95fcfd99722b09819e00809c64c59fc0e2d81 /components/dfs
parent4962dc94a47f96e4e2ee510d570597a9fc9735ea (diff)
parent8102502b9815843bec2154b607c4f299ce179d97 (diff)
Merge pull request #4858 from Guozhanxin/devfs
[devfs] F_GETFL/F_SETFL should be handled by the drivers.
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/src/dfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c
index 802311b54e..fa0f6000b4 100644
--- a/components/dfs/src/dfs_file.c
+++ b/components/dfs/src/dfs_file.c
@@ -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)
{