failover: simplify qdev_device_add() failover case
commit5f2ef3b0d032797b6bad9449dfece3a8111a8529
authorJuan Quintela <quintela@redhat.com>
Wed, 18 Nov 2020 08:37:40 +0000 (18 09:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Dec 2020 18:48:58 +0000 (8 13:48 -0500)
tree607f5144adba70a37b74f2d7ab46b3030c9fb7fb
parent85d3b93196e43c4493c118aa9e3a82fe657636b5
failover: simplify qdev_device_add() failover case

Just put allthe logic inside the same if.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20201118083748.1328-20-quintela@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
softmmu/qdev-monitor.c