]> 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)
commit5eb49a7a25cadc7a0665e0bab854d2659dd69e50
tree317c45e97d26a98a498956486790fe3baa382150
parente78b6fe0d502e9f36922fd670e3cf6ad8eff69fd
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