mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user