fs: Run the default action of FIONBIO/FIOCLEX/FIONCLEX in success path

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-09-06 23:16:15 +08:00
committed by archer
parent 4df8b16060
commit 9726be616a
3 changed files with 28 additions and 38 deletions
+1 -3
View File
@@ -1516,7 +1516,7 @@ static int netdev_rt_ioctl(FAR struct socket *psock, int cmd,
static int netdev_file_ioctl(FAR struct socket *psock, int cmd,
unsigned long arg)
{
int ret;
int ret = OK;
switch (cmd)
{
@@ -1545,8 +1545,6 @@ static int netdev_file_ioctl(FAR struct socket *psock, int cmd,
{
conn->s_flags &= ~_SF_NONBLOCK;
}
ret = -ENOTTY; /* let file_vioctl update f_oflags */
}
else
{