Skip to content

Commit

Permalink
common/crc32c.cc: reduce scope of variable
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Jun 12, 2018
1 parent 530d374 commit bd239e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/crc32c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ uint32_t ceph_crc32c_zeros(uint32_t crc, unsigned len)
len = len >> 4;
range = 4;
while (len != 0) {
uint32_t crc1 = 0;
if ((len & 1) == 1) {
uint32_t crc1 = 0;
uint32_t* ptr = crc_turbo_table/*.val*/[range];
while (crc != 0) {
uint32_t mask = ~((crc & 1) - 1);
Expand Down

0 comments on commit bd239e7

Please sign in to comment.