orangefs: remove redundant assignment to variable buffer_index
authorColin Ian King <colin.i.king@gmail.com>
Mon, 17 Oct 2022 21:49:37 +0000 (22:49 +0100)
committerMike Marshall <hubcap@omnibond.com>
Wed, 7 Dec 2022 20:18:29 +0000 (15:18 -0500)
The variable buffer_index is assigned a value that is never read,
it is assigned just before the function returns. The assignment is
redundant and can be removed.

Cleans up clang scan build warning:
fs/orangefs/file.c:276:3: warning: Value stored to 'buffer_index'
is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c

index 732661a..167fa43 100644 (file)
@@ -273,7 +273,6 @@ out:
                gossip_debug(GOSSIP_FILE_DEBUG,
                        "%s(%pU): PUT buffer_index %d\n",
                        __func__, handle, buffer_index);
-               buffer_index = -1;
        }
        op_release(new_op);
        return ret;