[v2,1/5] sim: Remove self-assignments
Commit Message
Clang generates a warning if there is a redundant self-assignment
("-Wself-assign"). On the default configuration, it causes a build failure
(unless "--disable-werror" is specified).
This commit removes two redundant self-assignments.
sim/ChangeLog:
* common/hw-tree.c (split_find_device): Remove redundant
self-assignments.
---
sim/common/hw-tree.c | 2 --
1 file changed, 2 deletions(-)
@@ -335,7 +335,6 @@ split_find_device (struct hw *current,
else if (strncmp (spec->path, "./", strlen ("./")) == 0)
{
/* cd ./... */
- current = current;
spec->path += strlen ("./");
}
else if (strncmp (spec->path, "../", strlen ("../")) == 0)
@@ -348,7 +347,6 @@ split_find_device (struct hw *current,
else if (strcmp (spec->path, ".") == 0)
{
/* cd . */
- current = current;
spec->path += strlen (".");
}
else if (strcmp (spec->path, "..") == 0)