scp_write_nonblock.c: remove pointless check

libssh2_channel_write() cannot return a value that is larger than the
input length value
This commit is contained in:
Daniel Stenberg 2011-04-12 10:45:39 +02:00
parent aa07cdee9a
commit 0b0aa209f6

View File

@ -235,9 +235,7 @@ int main(int argc, char *argv[])
}
else {
prev = nread;
if(rc > nread) {
fprintf(stderr, "MOO %d > %d\n", (int)rc, (int)nread);
}
/* rc indicates how many bytes were written this time */
nread -= rc;
ptr += rc;