Skip to content

Commit

Permalink
arch_init: Clean up the duplicate variable 'len' defining in ram_load()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
colo-ft authored and Juan Quintela committed Jun 12, 2015
1 parent 7205c9e commit 5ee6926
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion migration/ram.c
Expand Up @@ -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;

Expand Down

0 comments on commit 5ee6926

Please sign in to comment.