]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: tftp: Remove tftp_init_load_addr error path
authorLeonard Anderweit <l.anderweit@phytec.de>
Thu, 20 Nov 2025 08:38:55 +0000 (09:38 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 1 Dec 2025 09:37:06 +0000 (10:37 +0100)
commitc10e1c2eded4783b8f4650da879ebae2beffcce6
tree0541a226f9e4861365ccee0f12ec7c70b6a2cbdf
parent14ece61178f4e604d62de1bc1cb15aa2013d6338
net: tftp: Remove tftp_init_load_addr error path

tftp_init_load_addr() always returns 0 since commit af45c84871e4 ("tftp:
rework the logic to validate the load address"), so we don't need to
check if it failed and can remove the error handling.
Also change tftp_init_load_addr() to static void since the return value
is now unused.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Reviewed-by: Yannic Moog <y.moog@phytec.de>
net/tftp.c