Commit 19db9be4aa39e9112356c09c511f1c4726b64c74

Authored by Fabio Estevam
Committed by Stefano Babic
1 parent 67ee3dd35e

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 <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

board/freescale/mx53ard/mx53ard.c
... ... @@ -287,7 +287,7 @@
287 287  
288 288 int board_eth_init(bd_t *bis)
289 289 {
290   - int rc = 0;
  290 + int rc = -ENODEV;
291 291  
292 292 weim_smc911x_iomux();
293 293 weim_cs1_settings();