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
..
2023-09-21 11:31:16 +03:00
2023-09-08 16:41:35 +01:00
2023-09-08 13:08:52 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:18 +03:00
2023-09-21 11:31:16 +03:00
2023-09-06 11:14:55 -04:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-08-23 12:06:39 +02:00
2023-09-21 11:31:16 +03:00
2023-09-20 07:54:34 +03:00
2023-09-21 09:32:47 -04:00
2023-09-21 11:31:16 +03:00
2023-09-20 07:54:34 +03:00
2023-09-20 07:54:34 +03:00
2023-09-20 07:54:34 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-06 11:14:55 -04:00
2023-08-31 19:47:43 +02:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-07-25 17:14:07 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-20 07:54:34 +03:00
2023-09-07 14:01:29 -04:00
2023-09-21 11:31:16 +03:00
2023-09-08 13:08:52 +03:00