Skip to contentSkip to conversation

migration/migration.c: Remove superfluous breaks

PATCH Applied Yi Wang 2 participants 2 messages Jul 13, 2020

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 6/12 migration/migration.c: Remove superfluous breaks

From: Liao Pingfang <[email protected]>

Remove superfluous breaks, as there is a "return" before them.

---
 migration/migration.c | 2 --
 1 file changed, 2 deletions(-)
migration/migration.c +0 -2
index 92e44e0..2fd5fbb 100644
@@ -985,7 +985,6 @@ static void fill_source_migration_info(MigrationInfo *info)
         /* no migration has happened ever */
         /* do not overwrite destination migration status */
         return;
-        break;
     case MIGRATION_STATUS_SETUP:
         info->has_status = true;
         info->has_total_time = false;
@@ -1104,7 +1103,6 @@ static void fill_destination_migration_info(MigrationInfo *info)
     switch (mis->state) {
     case MIGRATION_STATUS_NONE:
         return;
-        break;
     case MIGRATION_STATUS_SETUP:
     case MIGRATION_STATUS_CANCELLING:
     case MIGRATION_STATUS_CANCELLED:
Signature · 1 line
2.9.5
Reviewed-by on v1 6/12
#1 lore raw
Quoted 25 lines · Yi Wang

From: Liao Pingfang <[email protected]>

Remove superfluous breaks, as there is a "return" before them.

---
 migration/migration.c | 2 --
 1 file changed, 2 deletions(-)
migration/migration.c +0 -1
index 92e44e0..2fd5fbb 100644
@@ -985,7 +985,6 @@ static void fill_source_migration_info(MigrationInfo *info)
         /* no migration has happened ever */
         /* do not overwrite destination migration status */
         return;
-        break;
     case MIGRATION_STATUS_SETUP:
         info->has_status = true;
         info->has_total_time = false;

migration/migration.c static void fill_destination_migration_info(MigrationInfo *info) · line 1108

Quoted 7 lines
migration/migration.c +0 -1
@@ -1104,7 +1103,6 @@ static void fill_destination_migration_info(MigrationInfo *info)
     switch (mis->state) {
     case MIGRATION_STATUS_NONE:
         return;
-        break;
     case MIGRATION_STATUS_SETUP:
     case MIGRATION_STATUS_CANCELLING:
     case MIGRATION_STATUS_CANCELLED: