From 19db9be4aa39e9112356c09c511f1c4726b64c74 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 19 Mar 2012 13:41:25 +0000 Subject: [PATCH] mx53ard: Initialize return code with error The variable "rc" is the return of board_eth_init() function. Initialize it with an error code, so that this function can return an error when CONFIG_SMC911X is not set. Signed-off-by: Fabio Estevam Acked-by: Stefano Babic --- board/freescale/mx53ard/mx53ard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/mx53ard/mx53ard.c b/board/freescale/mx53ard/mx53ard.c index e90e39ee0a..2d21584b33 100644 --- a/board/freescale/mx53ard/mx53ard.c +++ b/board/freescale/mx53ard/mx53ard.c @@ -287,7 +287,7 @@ int board_init(void) int board_eth_init(bd_t *bis) { - int rc = 0; + int rc = -ENODEV; weim_smc911x_iomux(); weim_cs1_settings(); -- 2.39.5