[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] vmstate: check subsection_found is enough
From: |
Wei Yang |
Subject: |
[Qemu-devel] [PATCH] vmstate: check subsection_found is enough |
Date: |
Tue, 2 Apr 2019 10:57:28 +0800 |
subsection_found is true implies vmdesc is not NULL.
Signed-off-by: Wei Yang <address@hidden>
---
migration/vmstate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/vmstate.c b/migration/vmstate.c
index e2bbb7b5f7..8327179eea 100644
--- a/migration/vmstate.c
+++ b/migration/vmstate.c
@@ -533,7 +533,7 @@ static int vmstate_subsection_save(QEMUFile *f, const
VMStateDescription *vmsd,
sub++;
}
- if (vmdesc && subsection_found) {
+ if (subsection_found) {
json_end_array(vmdesc);
}
--
2.19.1
- [Qemu-devel] [PATCH] vmstate: check subsection_found is enough,
Wei Yang <=