diff options
author | Tom Rini <trini@konsulko.com> | 2022-06-07 12:21:57 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-07 12:21:57 -0400 |
commit | ed1cbbe2afe4d4c7c25316db4c2e15c4c579fc4e (patch) | |
tree | a8315fd7fca59a0cff90ba0343d73c3f15e18c50 /lib/fdtdec.c | |
parent | 41e47b420d6b122f6eb21e6e4438b334cc983eb1 (diff) | |
parent | b62450cf229c50ad2ce819dd02a09726909cc89a (diff) |
Merge branch '2022-06-07-assorted-improvements' into next
- A wide ranging set of minor clean-ups and improvements
Diffstat (limited to 'lib/fdtdec.c')
-rw-r--r-- | lib/fdtdec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index e20f6aad9c2..ffa78f97ca0 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -516,11 +516,8 @@ int fdtdec_get_alias_seq(const void *blob, const char *base, int offset, * Adding an extra check to distinguish DT nodes with * same name */ - if (IS_ENABLED(CONFIG_PHANDLE_CHECK_SEQ)) { - if (fdt_get_phandle(blob, offset) != - fdt_get_phandle(blob, fdt_path_offset(blob, prop))) - continue; - } + if (offset != fdt_path_offset(blob, prop)) + continue; val = trailing_strtol(name); if (val != -1) { |