failover: simplify failover_unplug_primary
commit07a5d816d50f5f876d5fcd43724a6ff17cf59a4f
authorJuan Quintela <quintela@redhat.com>
Wed, 18 Nov 2020 08:37:47 +0000 (18 09:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Dec 2020 18:48:58 +0000 (8 13:48 -0500)
tree4d593cf4d12b5bcc76ece66762d63df9ffc87432
parent0e9a65c5b168b993b845ec2acb2568328c2353da
failover: simplify failover_unplug_primary

We can calculate device just once.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20201118083748.1328-27-quintela@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c