From: Danny Al-Gaaf Date: Mon, 14 May 2018 20:56:10 +0000 (+0200) Subject: common/crc32c.cc: reduce scope of variable X-Git-Tag: v14.0.1~984^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bd239e7d99d339b542bae379940b9b2bc3f404ab;p=ceph.git common/crc32c.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- diff --git a/src/common/crc32c.cc b/src/common/crc32c.cc index a30d38664136..d5c984ab463e 100644 --- a/src/common/crc32c.cc +++ b/src/common/crc32c.cc @@ -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);