Skip to content

Commit

Permalink
orangefs: remove redundant assignment to variable buffer_index
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ColinIanKing authored and hubcapsc committed Dec 7, 2022
1 parent b352507 commit 610defd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/orangefs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
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;
Expand Down

0 comments on commit 610defd

Please sign in to comment.