From mboxrd@z Thu Jan 1 00:00:00 1970 From: Troy Kisky Date: Fri, 11 Sep 2015 09:20:05 -0700 Subject: [U-Boot] [PATCH 1/2] nitrogen6x: Fix the error handling in board_eth_init() In-Reply-To: <1441943632-4191-1-git-send-email-festevam@gmail.com> References: <1441943632-4191-1-git-send-email-festevam@gmail.com> Message-ID: <55F2FF35.8010202@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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/nitrogen6x/nitrogen6x.c | 19 +++++++++++-------- > 1 file changed, 11 insertions(+), 8 deletions(-) Acked-by: Troy Kisky