aboutsummaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-10-24 14:29:39 +0100
committerMike Marshall <hubcap@omnibond.com>2022-12-07 15:18:29 -0500
commitb3525072835b523b397d459fadd0785d9c24bbd1 (patch)
tree6b2fc3f3f93527e3356a903694d7b9d57ea1e2a8 /fs/orangefs
parentb7b275e60bcd5f89771e865a8239325f86d9927d (diff)
downloadlinux-b3525072835b523b397d459fadd0785d9c24bbd1.tar.gz
orangefs: remove variable i
Variable i is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 7a8c0c6e698de..eaa35a9661151 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -530,7 +530,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
size_t count = iov_iter_count(iter);
ssize_t total_count = 0;
ssize_t ret = -EINVAL;
- int i = 0;
gossip_debug(GOSSIP_FILE_DEBUG,
"%s-BEGIN(%pU): count(%d) after estimate_max_iovecs.\n",
@@ -556,7 +555,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
while (iov_iter_count(iter)) {
size_t each_count = iov_iter_count(iter);
size_t amt_complete;
- i++;
/* how much to transfer in this loop iteration */
if (each_count > orangefs_bufmap_size_query())