From 84292ac9dbc998da213c075a640f2cb8e9d0e4c4 Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Thu, 25 Jun 2020 11:37:11 +0900
Subject: [PATCH] Remove useless loop variable

---
 lib/ngtcp2_cc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/ngtcp2_cc.c b/lib/ngtcp2_cc.c
index 4b600556..be83c123 100644
--- a/lib/ngtcp2_cc.c
+++ b/lib/ngtcp2_cc.c
@@ -236,7 +236,6 @@ void ngtcp2_cc_cubic_cc_free(ngtcp2_cc *cc, const ngtcp2_mem *mem) {
 static uint64_t ngtcp2_cbrt(uint64_t n) {
   int d;
   uint64_t a;
-  int i;
 
   if (n == 0) {
     return 0;
@@ -257,7 +256,7 @@ static uint64_t ngtcp2_cbrt(uint64_t n) {
 #endif
   a = 1ULL << ((64 - d) / 3 + 1);
 
-  for (i = 0; a * a * a > n; ++i) {
+  for (; a * a * a > n;) {
     a = (2 * a + n / a / a) / 3;
   }
   return a;
-- 
GitLab