提交 19db9be4 编写于 作者: F Fabio Estevam 提交者: Stefano Babic

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: NFabio Estevam <fabio.estevam@freescale.com>
Acked-by: NStefano Babic <sbabic@denx.de>
上级 67ee3dd3
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册