Re: [U-Boot] [PATCH 011/126] dm: core: Correct the return value for uclass_find_first_device()

2019-10-06 Thread Bin Meng
On Fri, Oct 4, 2019 at 5:44 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > This function returns -ENODEV when there is no device. This is > > inconsistent with other functions, such as uclass_find_next_device(), > > which returns 0. > > > > Update it and tidy

Re: [U-Boot] [PATCH 011/126] dm: core: Correct the return value for uclass_find_first_device()

2019-10-04 Thread Bin Meng
On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > This function returns -ENODEV when there is no device. This is > inconsistent with other functions, such as uclass_find_next_device(), > which returns 0. > > Update it and tidy up the incorrect '-1' values in the comments. > > Signed-off-by: