[U-Boot] [PATCH 1/9] wandboard: Return error if the SDHC port index is invalid
    Otavio Salvador 
    otavio at ossystems.com.br
       
    Tue May 21 20:26:42 CEST 2013
    
    
  
On Tue, May 21, 2013 at 2:32 PM, Fabio Estevam
<fabio.estevam at 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.estevam at 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
    
    
More information about the U-Boot
mailing list