]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: Remove redundant kbasename function call
authorQi Zheng <arch0.zheng@gmail.com>
Thu, 28 May 2020 13:25:41 +0000 (21:25 +0800)
committerRob Herring <robh@kernel.org>
Fri, 29 May 2020 02:57:17 +0000 (20:57 -0600)
commit76e0c3810c808f8b89b24ab139ede33bd2302c99
tree317c45e97d26a98a498956486790fe3baa382150
parentbcdb75c641758b6a873e98a67cbc7e1a72c4efa9
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: Qi Zheng <arch0.zheng@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c