mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
procfs: use kbasename()
[[email protected]: remove duplicated include] Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2fbc57c53a
commit
f9a00e8738
1 changed files with 1 additions and 5 deletions
|
|
@ -195,11 +195,7 @@ void proc_device_tree_add_node(struct device_node *np,
|
|||
set_node_proc_entry(np, de);
|
||||
for (child = NULL; (child = of_get_next_child(np, child));) {
|
||||
/* Use everything after the last slash, or the full name */
|
||||
p = strrchr(child->full_name, '/');
|
||||
if (!p)
|
||||
p = child->full_name;
|
||||
else
|
||||
++p;
|
||||
p = kbasename(child->full_name);
|
||||
|
||||
if (duplicate_name(de, p))
|
||||
p = fixup_name(np, de, p);
|
||||
|
|
|
|||
Loading…
Reference in a new issue