]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
minor cleanups
authorAlan T. DeKok <aland@freeradius.org>
Tue, 9 Aug 2022 11:41:51 +0000 (07:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 9 Aug 2022 17:09:32 +0000 (13:09 -0400)
src/lib/io/network.c

index b8fcbedb0b2d3e29831d9ae77d78aa69861a6b2b..179352559371b8137710b7cbd3226f8947aa00ba 100644 (file)
@@ -586,7 +586,7 @@ retry:
                }
 
        } else if (nr->num_blocked == 0) {
-               int cmp;
+               int64_t cmp;
                uint32_t one, two;
 
                one = fr_rand() % nr->num_workers;
@@ -631,11 +631,7 @@ retry:
                        if (worker->blocked) continue;
 
                        outstanding = OUTSTANDING(worker);
-                       if (!found) {
-                               found = worker;
-                               min_outstanding = outstanding;
-
-                       } else if (outstanding < min_outstanding) {
+                       if (outstanding < min_outstanding) {
                                found = worker;
                                min_outstanding = outstanding;