local: fix nx_style
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
390de249a0
commit
5b9a953381
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue