fs/uio: do not overwrite the return value
Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
parent
2c9b287b2e
commit
ff50bc191c
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ int uio_init(FAR struct uio *uio, FAR const struct iovec *iov, int iovcnt)
|
|||
resid = uio_calc_resid(uio);
|
||||
if (resid < 0)
|
||||
{
|
||||
return -EINVAL;
|
||||
return resid;
|
||||
}
|
||||
|
||||
uio->uio_resid = resid;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue