qdev/qbus: remove failover specific code
commitbcfc906be47a88803307cd6b665dc4c26fdd6dd2
authorLaurent Vivier <lvivier@redhat.com>
Tue, 19 Oct 2021 07:15:32 +0000 (19 09:15 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Oct 2021 08:37:55 +0000 (20 04:37 -0400)
treef3c02e2f420ddbfa8e691c37c3dbae6f3b6b870c
parent515efffc2fd0928317a0a1ec47b28a972c40ddad
qdev/qbus: remove failover specific code

Commit f3a850565693 ("qdev/qbus: add hidden device support") has
introduced a generic way to hide a device but it has modified
qdev_device_add() to check a specific option of the failover device,
"failover_pair_id", before calling the generic mechanism.

It's not needed (and not generic) to do that in qdev_device_add() because
this is also checked by the failover_hide_primary_device() function that
uses the generic mechanism to hide the device.

Cc: Jens Freimann <jfreimann@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20211019071532.682717-3-lvivier@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
hw/net/virtio-net.c
softmmu/qdev-monitor.c