diff --git a/fs/vfs/fs_dup2.c b/fs/vfs/fs_dup2.c index e9e4114e2e..154331afc7 100644 --- a/fs/vfs/fs_dup2.c +++ b/fs/vfs/fs_dup2.c @@ -150,7 +150,7 @@ int file_dup3(FAR struct file *filep1, FAR struct file *filep2, int flags) ret = file_ioctl(filep2, FIONBIO, 0); if (ret < 0 && inode->u.i_ops->close) { - ret = inode->u.i_ops->close(filep2); + inode->u.i_ops->close(filep2); } } }