clang scan-build: Fix "dead increment" warnings.

For the most part, these indicated a spot where the code could have
been better.
This commit is contained in:
Nick Mathewson
2017-09-12 17:20:09 -04:00
parent 0f58e17313
commit a4847ffa91
4 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ tor_log2(uint64_t u64)
r += 2;
}
if (u64 >= (U64_LITERAL(1)<<1)) {
u64 >>= 1;
// u64 >>= 1; // not using this any more.
r += 1;
}
return r;