Re: [PATCH 01/21] net/virtio: Drop useless n->primary_dev not null checks

2019-12-02 Thread Jens Freimann
On Sat, Nov 30, 2019 at 08:42:20PM +0100, Markus Armbruster wrote: 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_prim

[PATCH 01/21] net/virtio: Drop useless n->primary_dev not null checks

2019-11-30 Thread Markus Armbruster
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 cr