mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
cp: Remove useless ssize_t cast
Both wcount and wresid are ssize_t so this cast is not needed. Just remove it so the code is easier to read. Signed-off-by: Collin Funk <collin.funk1@gmail.com> Reviewed by: emaste, zlei Pull Request: https://github.com/freebsd/freebsd-src/pull/1116
This commit is contained in:
parent
501f7e7bf8
commit
8b86415185
|
@ -91,7 +91,7 @@ copy_fallback(int from_fd, int to_fd)
|
|||
wcount = write(to_fd, bufp, wresid);
|
||||
if (wcount <= 0)
|
||||
break;
|
||||
if (wcount >= (ssize_t)wresid)
|
||||
if (wcount >= wresid)
|
||||
break;
|
||||
}
|
||||
return (wcount < 0 ? wcount : rcount);
|
||||
|
|
Loading…
Reference in a new issue