
21 May
2013
21 May
'13
8:26 p.m.
On Tue, May 21, 2013 at 2:32 PM, Fabio Estevam fabio.estevam@freescale.comwrote:
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.estevam@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