Re: [Qemu-devel] [PATCH 08/11] migration: use switch at the end of migration

2018-01-03 Thread Juan Quintela
Peter Xu wrote: > It converts the old if clauses into switch, explicitly mentions the > possible migration states. The old nested "if"s are not clear on what > we do on different states. > > Signed-off-by: Peter Xu > --- > migration/migration.c | 32 +--- > 1 file ch

[Qemu-devel] [PATCH 08/11] migration: use switch at the end of migration

2018-01-02 Thread Peter Xu
It converts the old if clauses into switch, explicitly mentions the possible migration states. The old nested "if"s are not clear on what we do on different states. Signed-off-by: Peter Xu --- migration/migration.c | 32 +--- 1 file changed, 21 insertions(+), 11 dele