On Tue, May 21, 2013 at 2:32 PM, Fabio Estevam <fabio.este...@freescale.com>wrote:
> When the SDHC port number index is invalid we should return an error code > immediately. > > Currently we return 'status', which has a value of zero, causing > board_mmc_init() to incorrectly return sucess. > > Fix this by returning -EINVAL instead. > > Signed-off-by: Fabio Estevam <fabio.este...@freescale.com> > When I looked at this code I didn't change it because it raises a warning. So it returns the status if any failed. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot