OSDN Git Service

hw: Simplify calls to pci_nic_init_nofail()
authorThomas Huth <thuth@redhat.com>
Thu, 29 Jun 2023 12:54:49 +0000 (14:54 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 8 Jul 2023 04:24:38 +0000 (07:24 +0300)
commitb697a48924fc1b6ea3b6077f824a2753cfa1b210
treee25b5f4b27a9198fca74c2339b1295a660b3dac6
parentc35d9373be7b60a442b9bbb6cfd2ad5f5bde581d
hw: Simplify calls to pci_nic_init_nofail()

pci_nic_init_nofail() calls qemu_find_nic_model(), and this function
sets nd->model = g_strdup(default_model) if it has not been initialized
yet. So we don't have to set nd->model to the default_nic in the
calling sites.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/arm/sbsa-ref.c
hw/arm/virt.c
hw/loongarch/virt.c
hw/mips/loongson3_virt.c
hw/xtensa/virt.c