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

We don't need to walk the opts by hand.  qmp_opt_get() already does
that.  And then we can remove the functions that did that walk.

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