소스 검색

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

guozhanxin 4 년 전
부모
커밋
8102502b98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/dfs/src/dfs_file.c

+ 1 - 1
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)
         {