[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] arch_init: Clean up the duplicate variable 'len'
From: |
zhanghailiang |
Subject: |
[Qemu-trivial] [PATCH] arch_init: Clean up the duplicate variable 'len' defining in ram_load() |
Date: |
Fri, 15 May 2015 17:00:03 +0800 |
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 <address@hidden>
---
arch_init.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch_init.c b/arch_init.c
index 23d3feb..8918f6c 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -1593,7 +1593,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;
--
1.7.12.4
- [Qemu-trivial] [PATCH] arch_init: Clean up the duplicate variable 'len' defining in ram_load(),
zhanghailiang <=