aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-09-25 08:42:02 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-10-11 15:18:14 +0100
commit5294d882ebb5b10f8a246f2c51ffef05622ef16c (patch)
treecaee9c913f27d5f9ec18403c9269f49a472a096e /sim/ppc
parente9a433bf192ddcadc7e948ef3b4e0ca64f3396e7 (diff)
downloadgdb-5294d882ebb5b10f8a246f2c51ffef05622ef16c.zip
gdb-5294d882ebb5b10f8a246f2c51ffef05622ef16c.tar.gz
gdb-5294d882ebb5b10f8a246f2c51ffef05622ef16c.tar.bz2
sim: Remove self-assignments
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 redundant self-assignments from two files.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/tree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/ppc/tree.c b/sim/ppc/tree.c
index 6d20665..05532bb 100644
--- a/sim/ppc/tree.c
+++ b/sim/ppc/tree.c
@@ -306,7 +306,6 @@ split_find_device(device *current,
}
else if (strncmp(spec->path, "./", strlen("./")) == 0) {
/* cd ./... */
- current = current;
spec->path += strlen("./");
}
else if (strncmp(spec->path, "../", strlen("../")) == 0) {
@@ -317,7 +316,6 @@ split_find_device(device *current,
}
else if (strcmp(spec->path, ".") == 0) {
/* cd . */
- current = current;
spec->path += strlen(".");
}
else if (strcmp(spec->path, "..") == 0) {