virtio_net: Modify virtio_net_get_config to early return
commitebc141a62508dc91901373c1a19fe7e2cf560dfb
authorEugenio Pérez <eperezma@redhat.com>
Wed, 21 Dec 2022 11:50:12 +0000 (21 12:50 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:21 +0000 (8 01:54 -0500)
treed9700221126be4eb4eaa6496d62b9a86ec992213
parent0ab12aa32462817f0a53fa6f6ce4baf664ef1713
virtio_net: Modify virtio_net_get_config to early return

Next patches introduce more code on vhost-vdpa branch, with already have
too much indentation.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221221115015.1400889-2-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c