Skip to content

Commit

Permalink
fs/uio: do not overwrite the return value
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Jan 22, 2025
1 parent 2c9b287 commit ff50bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/vfs/fs_uio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff50bc1

Please sign in to comment.