mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
log: syslog: Handle errors in net_init
Since the previous patch, net_init now exposes some errors, so check for them. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c3f0278e29
commit
a4326612ac
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ static int log_syslog_emit(struct log_device *ldev, struct log_rec *rec)
|
|||
char *log_hostname;
|
||||
|
||||
/* Setup packet buffers */
|
||||
net_init();
|
||||
ret = net_init();
|
||||
if (ret)
|
||||
return ret;
|
||||
/* Disable hardware and put it into the reset state */
|
||||
eth_halt();
|
||||
/* Set current device according to environment variables */
|
||||
|
|
Loading…
Reference in a new issue