Skip to content
Commit 7536c7e0 authored by Qi Zheng's avatar Qi Zheng Committed by Rob Herring
Browse files

of/fdt: Remove redundant kbasename function call



For version 1 to 3 of the device tree, this is the node full
path as a zero terminated string, starting with "/". The
following equation will not hold, since the node name has
been processed in the fdt_get_name().

	*pathp == '/'

For version 16 and later, this is the node unit name only
(or an empty string for the root node). So the above
equation will still not hold.

So the kbasename() is redundant, just remove it.

Signed-off-by: default avatarQi Zheng <arch0.zheng@gmail.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 67e35adf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment