From: VMware, Inc <> Date: Mon, 20 Sep 2010 18:16:21 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2010.09.19-301124~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63e5f943fa8a0e2264ae90365d6491e5d8ca9db5;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/linux/vsock/linux/af_vsock.c b/open-vm-tools/modules/linux/vsock/linux/af_vsock.c index 9ef5d2f86..7e3212e85 100644 --- a/open-vm-tools/modules/linux/vsock/linux/af_vsock.c +++ b/open-vm-tools/modules/linux/vsock/linux/af_vsock.c @@ -4325,13 +4325,8 @@ VSockVmciStreamSendmsg(struct kiocb *kiocb, // UNUSED prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); while (totalWritten < len) { - Bool sentWrote; - unsigned int retries; ssize_t written; - sentWrote = FALSE; - retries = 0; - while (VSockVmciStreamHasSpace(vsk) == 0 && sk->sk_err == 0 && !(sk->sk_shutdown & SEND_SHUTDOWN) &&