Commit 5345db19 authored by Denis Efremov's avatar Denis Efremov Committed by David Gibson
Browse files

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: default avatarDenis Efremov <efremov@linux.com>
Message-Id: <20190827204148.20604-1-efremov@linux.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent b8d6eca7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment