Skip to content
Commit 134bf30c authored by Colin Ian King's avatar Colin Ian King Committed by Mike Snitzer
Browse files

dm cache policy smq: fix alloc_bitset check that always evaluates as false



static analysis by cppcheck has found a check on alloc_bitset that
always evaluates as false and hence never finds an allocation failure:

[drivers/md/dm-cache-policy-smq.c:1689]: (warning) Logical conjunction
  always evaluates to false: !EXPR && EXPR.

Fix this by removing the incorrect mq->cache_hit_bits check

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 0a927c2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment