From: VMware, Inc <> Date: Mon, 26 Apr 2010 18:04:49 +0000 (-0700) Subject: Trivial: Fix warning X-Git-Tag: 2010.04.25-253928~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26547bca7a7c40ef8ad8fe11dfd720e1c48a1e65;p=thirdparty%2Fopen-vm-tools.git Trivial: Fix warning Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/linux/vmhgfs/page.c b/open-vm-tools/modules/linux/vmhgfs/page.c index 5ec0bf094..944ef1116 100644 --- a/open-vm-tools/modules/linux/vmhgfs/page.c +++ b/open-vm-tools/modules/linux/vmhgfs/page.c @@ -169,8 +169,10 @@ HgfsDoRead(HgfsHandle handle, // IN: Handle for this file char *payload = NULL; HgfsStatus replyStatus; char *buf; + uint32 count; ASSERT(numEntries == 1); - uint32 count = dataPacket[0].len; + + count = dataPacket[0].len; req = HgfsGetNewRequest(); if (!req) { @@ -363,8 +365,10 @@ HgfsDoWrite(HgfsHandle handle, // IN: Handle for this file uint32 reqSize; HgfsStatus replyStatus; char *buf; + uint32 count; ASSERT(numEntries == 1); - uint32 count = dataPacket[0].len; + + count = dataPacket[0].len; req = HgfsGetNewRequest(); if (!req) {