[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/15] migration/vmstate: Remove redundant statement in vmstate_sa
From: |
Juan Quintela |
Subject: |
[PULL 09/15] migration/vmstate: Remove redundant statement in vmstate_save_state_v() |
Date: |
Fri, 28 Feb 2020 10:24:14 +0100 |
From: Chen Qun <address@hidden>
The "ret" has been assigned in all branches. It didn't need to be
assigned separately.
Clang static code analyzer show warning:
migration/vmstate.c:365:17: warning: Value stored to 'ret' is never read
ret = 0;
^ ~
Reported-by: Euler Robot <address@hidden>
Signed-off-by: Chen Qun <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
migration/vmstate.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/migration/vmstate.c b/migration/vmstate.c
index 7dd8ef66c6..bafa890384 100644
--- a/migration/vmstate.c
+++ b/migration/vmstate.c
@@ -362,7 +362,6 @@ int vmstate_save_state_v(QEMUFile *f, const
VMStateDescription *vmsd,
}
for (i = 0; i < n_elems; i++) {
void *curr_elem = first_elem + size * i;
- ret = 0;
vmsd_desc_field_start(vmsd, vmdesc_loop, field, i, n_elems);
old_offset = qemu_ftell_fast(f);
--
2.24.1
- [PULL 00/15] Pull migration patches, Juan Quintela, 2020/02/28
- [PULL 01/15] multifd: Add multifd-compression parameter, Juan Quintela, 2020/02/28
- [PULL 02/15] migration: Add support for modules, Juan Quintela, 2020/02/28
- [PULL 03/15] multifd: Make no compression operations into its own structure, Juan Quintela, 2020/02/28
- [PULL 04/15] multifd: Add multifd-zlib-level parameter, Juan Quintela, 2020/02/28
- [PULL 06/15] configure: Enable test and libs for zstd, Juan Quintela, 2020/02/28
- [PULL 05/15] multifd: Add zlib compression multifd support, Juan Quintela, 2020/02/28
- [PULL 07/15] multifd: Add multifd-zstd-level parameter, Juan Quintela, 2020/02/28
- [PULL 08/15] multifd: Add zstd compression multifd support, Juan Quintela, 2020/02/28
- [PULL 09/15] migration/vmstate: Remove redundant statement in vmstate_save_state_v(),
Juan Quintela <=
- [PULL 10/15] test-vmstate: Fix memleaks in test_load_qlist, Juan Quintela, 2020/02/28
- [PULL 11/15] migration/savevm: release gslist after dump_vmstate_json, Juan Quintela, 2020/02/28
- [PULL 12/15] migration/block: rename BLOCK_SIZE macro, Juan Quintela, 2020/02/28
- [PULL 13/15] migration: fix COLO broken caused by a previous commit, Juan Quintela, 2020/02/28
- [PULL 14/15] migration/colo: wrap incoming checkpoint process into new helper, Juan Quintela, 2020/02/28
- [PULL 15/15] savevm: Don't call colo_init_ram_cache twice, Juan Quintela, 2020/02/28
- Re: [PULL 00/15] Pull migration patches, Peter Maydell, 2020/02/28