|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH] hw: Simplify calls to pci_nic_init_nofail() |
Date: | Thu, 29 Jun 2023 23:15:16 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
On 29/6/23 16:58, Thomas Huth wrote:
On 29/06/2023 15.47, Philippe Mathieu-Daudé wrote:Hi Thomas, On 29/6/23 14:54, Thomas Huth wrote: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> --- hw/arm/sbsa-ref.c | 8 +------- hw/arm/virt.c | 8 +------- hw/loongarch/virt.c | 8 +------- hw/mips/loongson3_virt.c | 8 +------- hw/xtensa/virt.c | 8 +------- 5 files changed, 5 insertions(+), 35 deletions(-)...This remind me of a branch from end of April with this unfinished patch, did we already discuss this together?No, I haven't seen your patch yet, neither we talked about it. I came up with the idea for my patch on my own after looking at certain spots in the code. But I guess you could easily rebase your patch on top of mine in case you want to finish it ;-)
Yeah sure, I was just wondering :) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |