local: fix nx_style

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-07-22 14:07:00 +08:00 committed by Petro Karashchenko
parent 390de249a0
commit 5b9a953381
2 changed files with 2 additions and 3 deletions

View File

@ -80,12 +80,12 @@ int local_fifo_read(FAR struct file *filep, FAR uint8_t *buf,
{
ret = (int)nread;
if (nread == -EINTR)
if (ret == -EINTR)
{
ninfo("Ignoring signal\n");
continue;
}
else if (nread == -EAGAIN)
else if (ret == -EAGAIN)
{
goto errout;
}

View File

@ -99,7 +99,6 @@ static int local_fifo_write(FAR struct file *filep, FAR const uint8_t *buf,
nerr("ERROR: file_write failed: %zd\n", ret);
break;
}
}
nwritten += ret;