]> git.sur5r.net Git - u-boot/commit
udoo: Fix the error handling in board_eth_init()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 11 Sep 2015 16:32:50 +0000 (13:32 -0300)
committerStefano Babic <sbabic@denx.de>
Sun, 13 Sep 2015 09:06:08 +0000 (11:06 +0200)
commit84c311f28e39d7b5b13069ae29a55bdf6c7c0890
tree76e8e50907fccc9e6c6aea7dbfb7ffea79496dca
parent36f5a7f64d0ec0de9db467495005e97ff956a721
udoo: 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.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/udoo/udoo.c