[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] migration: current_migration is never NULL
From: |
Wei Yang |
Subject: |
[Qemu-devel] [PATCH] migration: current_migration is never NULL |
Date: |
Wed, 26 Jun 2019 08:42:11 +0800 |
migration_object_init() create and assign current_migration, which means
it will never be null until migration_shutdown().
Signed-off-by: Wei Yang <address@hidden>
---
migration/migration.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/migration/migration.c b/migration/migration.c
index 0fd2364961..43fd8297ef 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -1667,10 +1667,6 @@ bool migration_is_idle(void)
{
MigrationState *s = current_migration;
- if (!s) {
- return true;
- }
-
switch (s->state) {
case MIGRATION_STATUS_NONE:
case MIGRATION_STATUS_CANCELLED:
--
2.19.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] migration: current_migration is never NULL,
Wei Yang <=