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

2015-09-11 Thread Troy Kisky
On 9/10/2015 8:53 PM, Fabio Estevam wrote: > From: Fabio Estevam > > 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 > Signed-off-by: Fabio Estevam > --- > board/boundary/nitroge

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

2015-09-11 Thread Fabio Estevam
From: Fabio Estevam 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 Signed-off-by: Fabio Estevam --- board/boundary/nitrogen6x/nitrogen6x.c | 19 +++ 1 file changed, 11 ins