Skip to content

Commit

Permalink
orangefs: eliminate needless variable assignments
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
hubcapsc committed Jul 11, 2019
1 parent f10789e commit e65682b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/orangefs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
*/
if (ret == -EAGAIN && op_state_purged(new_op)) {
orangefs_bufmap_put(buffer_index);
buffer_index = -1;
if (type == ORANGEFS_IO_WRITE)
iov_iter_revert(iter, total_size);
gossip_debug(GOSSIP_FILE_DEBUG,
Expand Down Expand Up @@ -262,7 +261,6 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
"%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 e65682b

Please sign in to comment.