From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z07Qz-0006oj-3R for qemu-devel@nongnu.org; Wed, 03 Jun 2015 08:06:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z07Qv-0003kD-3I for qemu-devel@nongnu.org; Wed, 03 Jun 2015 08:06:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z07Qu-0003jr-Tg for qemu-devel@nongnu.org; Wed, 03 Jun 2015 08:06:09 -0400 From: Juan Quintela Date: Wed, 3 Jun 2015 14:05:41 +0200 Message-Id: <1433333157-9939-6-git-send-email-quintela@redhat.com> In-Reply-To: <1433333157-9939-1-git-send-email-quintela@redhat.com> References: <1433333157-9939-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PULL 05/21] arch_init: Clean up the duplicate variable 'len' defining in ram_load() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, zhanghailiang From: zhanghailiang There are two places that define 'len' variable, It's OK for compiling, but makes it difficult for reading. Remove the local one which defined in the inside 'while' loop. Signed-off-by: zhanghailiang Signed-off-by: Juan Quintela --- migration/ram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index 14b81fc..808e8d2 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1501,7 +1501,6 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id) total_ram_bytes = addr; while (!ret && total_ram_bytes) { RAMBlock *block; - uint8_t len; char id[256]; ram_addr_t length; -- 2.4.1