Markus Armbruster 4dbac1aed2 net/virtio: Drop useless n->primary_dev not null checks
virtio_net_handle_migration_primary() returns early when it can't
ensure n->primary_dev is non-null.  Checking it again right after that
early return is redundant.  Drop.

If n->primary_dev is null on entering failover_replug_primary(), @pdev
will become null, and pdev->partially_hotplugged will crash.  Checking
n->primary_dev later is useless.  It can't actually be null, because
its caller virtio_net_handle_migration_primary() ensures it isn't.
Drop the useless check.

Cc: Jens Freimann <jfreimann@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20191130194240.10517-2-armbru@redhat.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
2019-12-02 16:14:33 +01:00
..
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-11-08 21:32:31 +01:00
2019-08-21 10:42:10 +02:00
2019-06-12 13:20:21 +02:00
2019-08-16 13:31:53 +02:00
2019-06-12 13:20:21 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 17:21:40 +01:00
2019-10-29 10:28:07 +08:00
2019-08-16 13:31:53 +02:00
2019-10-29 10:28:07 +08:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2018-03-02 18:44:00 +00:00
2016-06-16 18:39:03 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-10-29 10:28:07 +08:00
2019-10-29 10:28:07 +08:00
2019-10-29 10:28:07 +08:00
2019-06-12 13:20:21 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00