| commit | b697a48924fc1b6ea3b6077f824a2753cfa1b210 | [log] [tgz] |
|---|---|---|
| author | Thomas Huth <thuth@redhat.com> | Thu Jun 29 14:54:49 2023 +0200 |
| committer | Michael Tokarev <mjt@tls.msk.ru> | Sat Jul 08 07:24:38 2023 +0300 |
| tree | e25b5f4b27a9198fca74c2339b1295a660b3dac6 | |
| parent | c35d9373be7b60a442b9bbb6cfd2ad5f5bde581d [diff] |
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>