pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP server
authorThomas Huth <thuth@redhat.com>
Thu, 16 Jan 2025 11:58:26 +0000 (12:58 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 22 Jan 2025 07:28:49 +0000 (08:28 +0100)
commitbbfa7f8558d5346b6884108ad50df3517fe17358
tree59c584951713ce4d51f48f141f2b995e8b19bcbc
parent68c95ed1db070f7545e487e742715f01a545aab0
pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP server

The code in net_init_ip() currently bails out early if "rc" is less
than 0, so the if-statements that check for negative "rc" codes to
print out some specific error messages with regards to the TFTP server
are never reached. Move them earlier to bring that dead code back to
life.

Reviewed-by: Jared Rossi <jrossi@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Tested-by: Jared Rossi <jrossi@linux.ibm.com>
Message-ID: <20250116115826.192047-4-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/netmain.c