filesetup: Removing unused variable usage
authorErwan Velu <erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:22:56 +0000 (22:22 +0200)
committerErwan 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

index 296de5a11a3d015f65ffd28311d0278eca4341f7..228e4fffe3c5e7dd509a9ac642497093aca35f87 100644 (file)
@@ -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;
                }