Skip to content
Snippets Groups Projects
Commit 747472bb authored by Fabio Estevam's avatar Fabio Estevam Committed by Stefano Babic
Browse files

nitrogen6x: Fix the error handling in board_eth_init()


We should not return 0 on failure, so return a negative error code
instead.

Also centralize the error path so that is easier to follow.

Cc: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
parent 8f6edf6d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment