u-boot/drivers/core
Masahiro Yamada 84a7153733 dm: core: remove meaningless if conditional
If the variable "ret" is equal to "-ENOENT", it is trapped at [1] and
never reaches [2].  At [3], the condition "ret != -ENOENT" is always
true.

  if (ret == -ENOENT) {                       <------------------ [1]
          continue;
  } else if (ret == -ENODEV) {
          dm_dbg("Device '%s' has no compatible string\n", name);
          break;
  } else if (ret) {                           <------------------ [2]
          dm_warn("Device tree error at offset %d\n", offset);
          if (!result || ret != -ENOENT)      <------------------ [3]
                  result = ret;
          break;
  }

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
2014-11-22 10:16:48 +01:00
..
device-remove.c dm: Allow device removal features to be dropped 2014-11-21 08:13:02 +01:00
device.c dm: core: Add functions to find parent and OF data 2014-11-22 10:16:47 +01:00
Kconfig dm: add entries to Kconfig 2014-10-23 21:43:09 -06:00
lists.c dm: core: remove meaningless if conditional 2014-11-22 10:16:48 +01:00
Makefile dm: Allow device removal features to be dropped 2014-11-21 08:13:02 +01:00
root.c dm: core: a trivial clean up 2014-11-22 10:16:48 +01:00
simple-bus.c dm: core: Add support for simple-bus 2014-10-22 10:36:56 -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