diff options
author | Denis Efremov <efremov@linux.com> | 2019-08-27 23:41:48 +0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-08-28 13:57:27 +1000 |
commit | 5345db19f615b9147b3d0d8e04e83767b7457e92 (patch) | |
tree | 07d0b18ba5c1e78c167440a96303d31a6afb1181 /tests/sw_states.c | |
parent | b8d6eca78210952c6d93235c38ebd5836d6409c4 (diff) | |
download | device-tree-compiler-5345db19f615b9147b3d0d8e04e83767b7457e92.tar.gz |
livetree: simplify condition in get_node_by_path
The "strlen && strprefixeq" check in get_node_by_path is
excessive, since strlen is checked in strprefixeq macro
internally. Thus, "strlen(child->name) == p-path"
conjunct duplicates after macro expansion and could
be removed.
Signed-off-by: Denis Efremov <efremov@linux.com>
Message-Id: <20190827204148.20604-1-efremov@linux.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/sw_states.c')
0 files changed, 0 insertions, 0 deletions