projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67486df
)
filesetup: Removing unused variable usage
author
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:22:56 +0000
(22:22 +0200)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:22:56 +0000
(22:22 +0200)
done is set to true but this is useless as break will
stop the while loop.
So let's remove this useless assignment.
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
filesetup.c
patch
|
blob
|
blame
|
history
diff --git
a/filesetup.c
b/filesetup.c
index 296de5a11a3d015f65ffd28311d0278eca4341f7..228e4fffe3c5e7dd509a9ac642497093aca35f87 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-1024,7
+1024,6
@@
int longest_existing_path(char *path) {
while (!done) {
buf_pos = strrchr(buf, FIO_OS_PATH_SEPARATOR);
if (!buf_pos) {
- done = true;
offset = 0;
break;
}