summaryrefslogtreecommitdiff
path: root/common/spl/spl_net.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-04-29 00:44:54 +0200
committerStefano Babic <sbabic@denx.de>2016-05-17 17:52:20 +0200
commit7e0f22674ae871460706f9cc8653487bb51e0804 (patch)
tree604b55f32c78eee29614bfd6a99d7525f168384d /common/spl/spl_net.c
parent249092fa81f3dd3fee94fd05973833e30405f3c4 (diff)
downloadu-boot-7e0f22674ae871460706f9cc8653487bb51e0804.tar.gz
u-boot-7e0f22674ae871460706f9cc8653487bb51e0804.tar.bz2
u-boot-7e0f22674ae871460706f9cc8653487bb51e0804.zip
SPL: Let spl_parse_image_header() return value
Allow the spl_parse_image_header() to return value. This is convenient for controlling the SPL boot flow if the loaded image is corrupted. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/spl/spl_net.c')
-rw-r--r--common/spl/spl_net.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c
index 63b20d8200..ae71d26f0a 100644
--- a/common/spl/spl_net.c
+++ b/common/spl/spl_net.c
@@ -34,7 +34,5 @@ int spl_net_load_image(const char *device)
printf("Problem booting with BOOTP\n");
return rv;
}
- spl_parse_image_header((struct image_header *)load_addr);
-
- return 0;
+ return spl_parse_image_header((struct image_header *)load_addr);
}