Commit b3525072 authored by Colin Ian King's avatar Colin Ian King Committed by Mike Marshall

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent b7b275e6
...@@ -530,7 +530,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb, ...@@ -530,7 +530,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
size_t count = iov_iter_count(iter); size_t count = iov_iter_count(iter);
ssize_t total_count = 0; ssize_t total_count = 0;
ssize_t ret = -EINVAL; ssize_t ret = -EINVAL;
int i = 0;
gossip_debug(GOSSIP_FILE_DEBUG, gossip_debug(GOSSIP_FILE_DEBUG,
"%s-BEGIN(%pU): count(%d) after estimate_max_iovecs.\n", "%s-BEGIN(%pU): count(%d) after estimate_max_iovecs.\n",
...@@ -556,7 +555,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb, ...@@ -556,7 +555,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
while (iov_iter_count(iter)) { while (iov_iter_count(iter)) {
size_t each_count = iov_iter_count(iter); size_t each_count = iov_iter_count(iter);
size_t amt_complete; size_t amt_complete;
i++;
/* how much to transfer in this loop iteration */ /* how much to transfer in this loop iteration */
if (each_count > orangefs_bufmap_size_query()) if (each_count > orangefs_bufmap_size_query())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment