Merge pull request #4858 from Guozhanxin/devfs

[devfs] F_GETFL/F_SETFL should be handled by the drivers.
This commit is contained in:
Bernard Xiong 2021-07-09 21:14:42 +08:00 committed by GitHub
commit 5bae565f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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