summaryrefslogtreecommitdiff
path: root/fs/orangefs
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-10-17 22:49:37 +0100
committerMike Marshall <hubcap@omnibond.com>2022-12-07 15:18:29 -0500
commit610defdccff7b955fe899a825990c2202153a22e (patch)
tree354fcf951afe77e0e839b01c7acd2e627222cb03 /fs/orangefs
parentb3525072835b523b397d459fadd0785d9c24bbd1 (diff)
orangefs: remove redundant assignment to variable buffer_index
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>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c
index 732661aa2680..167fa43b24f9 100644
--- a/fs/orangefs/file.c
+++ b/fs/orangefs/file.c
@@ -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;