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 being initialized however this is never
read and later it is being reassigned to a new value. The initialization
is redundant and hence can be removed.

Addresses-Coverity: ("Unused Value")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
Colin Ian King authored and hubcapsc committed Jul 11, 2019
1 parent 0ecfebd commit f10789e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(inode);
struct orangefs_khandle *handle = &orangefs_inode->refn.khandle;
struct orangefs_kernel_op_s *new_op = NULL;
int buffer_index = -1;
int buffer_index;
ssize_t ret;
size_t copy_amount;

Expand Down

0 comments on commit f10789e

Please sign in to comment.