Skip to contentSkip to conversation

orangefs: remove variable i

PATCH New Colin Ian King 1 participant 1 message Oct 24, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 fs/orangefs/inode.c | 2 --
 1 file changed, 2 deletions(-)
fs/orangefs/inode.c +0 -2
index 7a8c0c6e698d..eaa35a966115 100644
@@ -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())
Signature · 1 line
2.37.3