[U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

Stephen Warren swarren at wwwdotorg.org
Wed May 7 20:27:56 CEST 2014


On 05/07/2014 12:22 PM, Fabio Estevam wrote:
> On Wed, May 7, 2014 at 3:19 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:
> 
>> +int mmc_select_hwpart(int dev_num, int hwpart)
...
>> +       ret = mmc_switch_part(dev_num, hwpart);
>> +       if (ret)
>> +               return -1;
> 
> Can't you return more appropriate return values rather than -1?

Oh yes, I should return ret there. I'll hold off for a while before
posting V2 though.


More information about the U-Boot mailing list