qemu-e2k/hw/mips
Thomas Huth c9daa685cb hw/mips/jazz: Simplify the NIC setup code
The for-loop does not make much sense here - it is always left after
the first iteration, so we can also check for nb_nics == 1 instead
which is way easier to understand.

Also, the checks for nd->model are superfluous since the code in
mips_jazz_init_net() calls qemu_check_nic_model() that already
takes care of this (i.e. initializing nd->model if it has not been
set yet, and checking whether it is the "help" option or the
supported NIC model).

Message-ID: <20230913160922.355640-3-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2023-09-25 07:58:14 +02:00
..
bootloader.c
boston.c hw/pci/pci: Remove multifunction parameter from pci_create_simple_multifunction() 2023-07-10 16:29:17 -04:00
cps.c hw/mips/itu: Pass SAAR using QOM link property 2023-03-08 00:37:48 +01:00
fuloong2e.c hw/pci/pci: Remove multifunction parameter from pci_create_simple_multifunction() 2023-07-10 16:29:17 -04:00
fw_cfg.c
fw_cfg.h
jazz.c hw/mips/jazz: Simplify the NIC setup code 2023-09-25 07:58:14 +02:00
Kconfig
loongson3_bootp.c
loongson3_bootp.h
loongson3_virt.c kvm: Introduce kvm_arch_get_default_type hook 2023-08-22 17:31:02 +01:00
malta.c trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value 2023-09-08 13:08:52 +03:00
meson.build
mips_int.c
mipssim.c trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value 2023-09-08 13:08:52 +03:00
trace-events
trace.h