[U-Boot] [PATCH 1/2] nitrogen6x: Fix the error handling in board_eth_init()

Troy Kisky troy.kisky at boundarydevices.com
Fri Sep 11 18:20:05 CEST 2015


On 9/10/2015 8:53 PM, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
> 
> 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 at boundarydevices.com>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
>  board/boundary/nitrogen6x/nitrogen6x.c | 19 +++++++++++--------
>  1 file changed, 11 insertions(+), 8 deletions(-)

Acked-by: Troy Kisky <troy.kisky at boundarydevices.com>


More information about the U-Boot mailing list