arch_init: Clean up the duplicate variable 'len' defining in ram_load()

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 <zhang.zhanghailiang@huawei.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
zhanghailiang 2015-05-15 17:00:03 +08:00 committed by Juan Quintela
parent 7205c9ec52
commit 5ee6926582
1 changed files with 0 additions and 1 deletions

View File

@ -1459,7 +1459,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;