u-boot-brain/drivers/core
Masahiro Yamada 2cede453da dm: simplify the loop in lists_driver_lookup_name()
if (strncmp(name, entry->name, len))
                continue;

        /* Full match */
        if (len == strlen(entry->name))
                return entry;

is equivalent to:

        if (!strcmp(name, entry->name))
                return entry;

The latter is simpler.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
2014-10-22 10:32:16 -06:00
..
device.c dm: avoid dev->req_seq overflow 2014-09-23 12:44:31 -06:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
lists.c dm: simplify the loop in lists_driver_lookup_name() 2014-10-22 10:32:16 -06:00
Makefile kbuild: refactor some makefiles 2014-09-24 18:30:29 -04:00
root.c dm: Adjust lists_bind_fdt() to return the bound device 2014-09-10 12:59:59 -06:00
uclass.c dm: do not check the existence of uclass operation 2014-10-22 10:32:16 -06:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00