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

Bin Meng bmeng.cn at gmail.com
Sun Oct 6 09:27:22 UTC 2019


On Fri, Oct 4, 2019 at 5:44 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> On Wed, Sep 25, 2019 at 10:58 PM Simon Glass <sjg at chromium.org> 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: Simon Glass <sjg at chromium.org>
> > ---
> >
> >  drivers/core/uclass.c        | 2 +-
> >  include/dm/uclass-internal.h | 4 ++--
> >  test/dm/core.c               | 3 +--
> >  3 files changed, 4 insertions(+), 5 deletions(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>

applied to u-boot-x86/next, thanks!


More information about the U-Boot mailing list