unittest_bit_alloc: silence clang analyzer warning

silences following warning:

Value stored to 'allocated' is never read

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-08-28 17:03:09 +08:00
parent 0bef6c7753
commit bceafe0607

View File

@ -245,7 +245,6 @@ TEST(BitAllocator, test_bmap_entry)
bmap = new BmapEntry(g_ceph_context, false);
start = -1;
scanned = 0;
allocated = 0;
allocated = bmap->find_first_set_bits(1, 1, &start, &scanned);
bmap_test_assert(allocated == 1);
bmap_test_assert(start == 1);