Skip to content

Commit b352507

Browse files
ColinIanKinghubcapsc
authored andcommitted
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 <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
1 parent b7b275e commit b352507

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/orangefs/inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
530530
size_t count = iov_iter_count(iter);
531531
ssize_t total_count = 0;
532532
ssize_t ret = -EINVAL;
533-
int i = 0;
534533

535534
gossip_debug(GOSSIP_FILE_DEBUG,
536535
"%s-BEGIN(%pU): count(%d) after estimate_max_iovecs.\n",
@@ -556,7 +555,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
556555
while (iov_iter_count(iter)) {
557556
size_t each_count = iov_iter_count(iter);
558557
size_t amt_complete;
559-
i++;
560558

561559
/* how much to transfer in this loop iteration */
562560
if (each_count > orangefs_bufmap_size_query())

0 commit comments

Comments
 (0)