]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache policy smq: fix alloc_bitset check that always evaluates as false
authorColin Ian King <colin.king@canonical.com>
Thu, 23 Jul 2015 15:47:59 +0000 (16:47 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 27 Jul 2015 11:58:15 +0000 (07:58 -0400)
commitd7f016bf5e22b56a939007463272f618f8b0f1c9
tree18e54851abf6c3300448b933c150c802894f800b
parent869fe20c485fe715a6254b65e590b1724e39d8ac
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy-smq.c