summaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2019-07-03 21:26:44 +0000
committerMike Marshall <hubcap@omnibond.com>2019-07-11 12:53:02 -0400
commite65682b55956e9fbf8a88f303a48e7c1430ffe15 (patch)
tree794ce0985af7d4adda0c822abddbafded9487fbf /fs/orangefs
parentf10789e4f6d6e2d0592620e6e3f6b4ff35d3488d (diff)
downloadlinux-e65682b55956e9fbf8a88f303a48e7c1430ffe15.tar.gz
linux-e65682b55956e9fbf8a88f303a48e7c1430ffe15.tar.bz2
linux-e65682b55956e9fbf8a88f303a48e7c1430ffe15.zip
orangefs: eliminate needless variable assignments
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c
index 80f06ee794c5..86f63e014ffb 100644
--- a/fs/orangefs/file.c
+++ b/fs/orangefs/file.c
@@ -134,7 +134,6 @@ populate_shared_memory:
*/
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,
@@ -262,7 +261,6 @@ out:
"%s(%pU): PUT buffer_index %d\n",
__func__, handle, buffer_index);
}
- buffer_index = -1;
}
op_release(new_op);
return ret;