Skip to content

Commit 610defd

Browse files
ColinIanKinghubcapsc
authored andcommitted
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 <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
1 parent b352507 commit 610defd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/orangefs/file.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
273273
gossip_debug(GOSSIP_FILE_DEBUG,
274274
"%s(%pU): PUT buffer_index %d\n",
275275
__func__, handle, buffer_index);
276-
buffer_index = -1;
277276
}
278277
op_release(new_op);
279278
return ret;

0 commit comments

Comments
 (0)